multi-term inflection

var nlp=require('compromise') console.log(nlp('coconut cream').nouns().toPlural().out()) console.log(nlp('brazil nut').nouns().toPlural().out()) console.log(nlp('crab apple').nouns().toPlural().out()) console.log(nlp('mayor of Chicago').nouns().toPlural().out())
Loading…

no comments

    sign in to comment