/nlp-syllables

for splitting words into their component syllables

Primary LanguageJavaScriptMIT LicenseMIT

turning words into their syllables

var nlp = require('nlp_compromise');
var nlpSyllables = require('nlp-syllables');

nlp.plugin(nlpSyllables);
var t2 = nlp.term('houston texas');
t2.syllables();
//[ [ 'hous', 'ton' ], [ 'tex', 'as' ] ]