nlp-locale

0.0.3 • Public • Published

https://en.wikipedia.org/wiki/List_of_dialects_of_the_English_language

var nlp = require('nlp_compromise');
var nlpLocale = require('nlp-locale');
nlp.plugin(nlpLocale);
 
var t = nlp.term('favorite');
= t.toAmerican();
console.log(t.text)
//favourite
 
var s = nlp.sentence("he synthesized the sound")
s.terms[1].toBritish()
s.text()
//he synthesised the sound

Dependents (0)

Package Sidebar

Install

npm i nlp-locale

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • spencermountain