constnlp=require('compromise')constdoc=nlp('JS is calling')doc.sentences().toNegative()// 'JS is not calling'
12
doc=nlp("the guest-singer's björk at seven thirty.").normalize().out('text')// 'The guest singer is Bjork at 7:30.'
12345
doc=nlp("we're not gonna take it, no we ain't gonna take it.")doc.has('going')// truedoc.match('are not').length// == 2doc.contractions().expand().out()//'we are not going to take it, no we are not going to take it'