This text is displayed if your browser does not support the Canvas HTML element.

A parse tree is an ordered, rooted tree representing the structure of a sentence, broken down to parts-of-speech.

This diagram uses a custom TreeLayout called FlatTreeLayout that places all leaf nodes at the same Y position. It also makes use of a TreeExpanderButton on the node template. See the Intro page on Buttons for more GoJS button information.

The abbreviations used in this diagram are:

  • NP, a noun phrase
  • VP, a verb phrase
  • PP, a prepositional phrase
  • DT, a determiner
  • JJ, an adjective
  • NN, a common noun
  • VBZ, a third person singular present verb
  • VBN, a past participle verb

GoJS version 2.2.22. Copyright 1998-2022 by Northwoods Software.

View this sample page's source on GitHub