Public
Edited
Aug 10, 2023
Insert cell
Insert cell
Insert cell
{
let doc = nlp(input)
let json = doc.lists().things().json({reduced:true})
return printList(json)
}
Insert cell
Insert cell
nlp('he eats, shoots, and leaves.').lists().length
Insert cell
Insert cell
nlp('he eats, shoots, and leaves.').lists().things().out('array')
Insert cell
Insert cell
{
let doc = nlp('i saw Paris, Berlin, and Dublin, on my summer-trip.')
doc.lists().add('Warsaw')
return doc.text()
}
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