Published
Edited
Mar 24, 2022
Insert cell
Insert cell
m = nlp(`Pontiac Buick, Ford Mustang, Honda Civic`).nouns()
Insert cell
Insert cell
m.first().text()
Insert cell
Insert cell
m.last().text()
Insert cell
Insert cell
m.slice(0,2).out('array')
Insert cell
Insert cell
m.eq(1).text()
Insert cell
Insert cell
m.firstTerms().out('array')
Insert cell
Insert cell
m.lastTerms().out('array')
Insert cell
Insert cell
m.termList()
Insert cell
Insert cell
nlp('one two three').match('one [two] [three]').groups('0').text()
Insert cell
nlp('one two three').match('one [<two>two]').groups('two').text()
Insert cell
md`without input, the method will return an object of all named groups:`
Insert cell
nlp('one two three').match('one [.] [<three>.]').groups()
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