nlp(`we're not worthy!`).verbs().toFutureTense().all().text()
nlp(`chilling out max and relaxing all cool.`).verbs().toInfinitive().all().text()
nlp("All my life I’ve had one dream, to accomplish my many goals.").verbs().toGerund().all().text()
nlp(`you are lisa simpson`).verbs().toNegative().all().text()
nlp("okay, don't use reverse psychology").verbs().toPositive().all().text()
nlp(`we're not gonna take it`).verbs().isNegative().out('array')
nlp(`we're not gonna take it`).verbs().isPositive().out('array')
nlp(`i saw the game that the Toronto Maple Leafs won`).verbs().isPlural().out('array')
nlp(`i saw the game that the Toronto Maple Leafs won`).verbs().isSingular().out('array')
{
letdoc=nlp('slab')//assumes it's a noun
doc.verbs().toPastTense()//this does nothing
returndoc.text()
}
{
letdoc=nlp('slab').tag('Verb')// co-erce it to a #Verb
doc.verbs().toPastTense()//now this changes it
returndoc.text()
}
nlp('bamboozle').tag('#Infinitive').out('tags')
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.