0.0.5 • Published 3 years ago

compromise-pronounce v0.0.5

Weekly downloads
109
License
MIT
Repository
github
Last release
3 years ago

it is a metaphone implementation in javascript, based on Chris Umbel's great work in naturalNode

Demo

var nlp = require('compromise')
var plugin = require('compromise-pronounce')
nlp.extend(plugin)

var doc = nlp('Phil Collins')
console.log(doc.pronounce())
/*[{
    text: 'Phil Collins',
    pronounce: 'fil kolins'
  }]
*/

it also takes advantage of the tokenization & cleverness of nlp_compromise.

it's not been properly tested.

Note that 'th' is transformed to 0 1

MIT