Public
Edited
Nov 24, 2022
5 stars
Insert cell
Insert cell
nlp('Somebody once told me the world is gonna roll me').match('#Verb').out('array')
Insert cell
nlp('Somebody once told me the world is gonna roll me').verbs().out('array')
Insert cell
Insert cell
Insert cell
nlp('a buck eh, that gives me an idea').verbs().json()[0]
Insert cell
Insert cell
nlp("it's quite funny").match('is').verbs().adverbs().text()
Insert cell
Insert cell
nlp("you and your whole lousy operation stink").verbs().adverbs().text()
Insert cell
Insert cell
nlp('I’m looking for Amanda Hugginkiss').verbs().conjugate()[0]
Insert cell
nlp('i should really study').verbs().conjugate()[0]
Insert cell
Insert cell
nlp('we get it, you vape').verbs().toPastTense().all().text()
Insert cell
Insert cell
nlp('nobody liked Milhouse!').verbs().toPresentTense().all().text()
Insert cell
Insert cell
nlp(`we're not worthy!`).verbs().toFutureTense().all().text()
Insert cell
Insert cell
nlp(`chilling out max and relaxing all cool.`).verbs().toInfinitive().all().text()
Insert cell
Insert cell
nlp("All my life I’ve had one dream, to accomplish my many goals.").verbs().toGerund().all().text()
Insert cell
Insert cell
nlp(`you are lisa simpson`).verbs().toNegative().all().text()
Insert cell
Insert cell
nlp("okay, don't use reverse psychology").verbs().toPositive().all().text()
Insert cell
Insert cell
nlp(`we're not gonna take it`).verbs().isNegative().out('array')
Insert cell
Insert cell
nlp(`we're not gonna take it`).verbs().isPositive().out('array')
Insert cell
Insert cell
nlp(`i saw the game that the Toronto Maple Leafs won`).verbs().isPlural().out('array')
Insert cell
Insert cell
nlp(`i saw the game that the Toronto Maple Leafs won`).verbs().isSingular().out('array')
Insert cell
Insert cell
{
let doc = nlp('slab') //assumes it's a noun
doc.verbs().toPastTense() //this does nothing
return doc.text()
}
Insert cell
{
let doc = nlp('slab').tag('Verb') // co-erce it to a #Verb
doc.verbs().toPastTense() //now this changes it
return doc.text()
}
Insert cell
Insert cell
Insert cell
Insert cell
nlp('bamboozle').tag('#Infinitive').out('tags')
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

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.
Learn more