0.0.5 • Published 3 years ago
compromise-pronounce v0.0.5
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