Unlisted
Edited
Nov 14, 2022
1 star
Insert cell
Insert cell
GrammarGraph = (await import("https://cdn.jsdelivr.net/npm/grammar-graph@3.1.1/+esm")).default
Insert cell
graph = new GrammarGraph({
Sentence: ["NounPhrase VerbPhrase"],
NounPhrase: ["the Noun", "the Noun RelativeClause"],
VerbPhrase: ["Verb", "Verb NounPhrase"],
RelativeClause: ["that VerbPhrase"],
Noun: ["dog", "cat", "bird", "squirrel"],
Verb: ["befriended", "loved", "ate", "attacked"]
})
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