The library documents itself · NLP & linguistics
stzParseTree
19 own methods · 1 forms written with extensions, listed under their method
the source: base/linguistic/stzParseTree.ring(opens in a new tab) · All classes · The area reference: NLP & linguistics
Under each method, its extensions (Q CS XT Z ZZ IB W U): bold and ticked, it exists; struck, it does not. The extensions and what they mean
Examples: 0 come from the library's tests; 6 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzParseTree("S"). 13 methods have none yet. Examples run on 2026-10-03 20:23 inside the library at commit 0e72e2e2c.
Method
Explanation, as the source carries it
init
(no comment in the source: the name reads as a sentence) initno extension
SetWord
construction (the parser builds bottom-up)no extension
AddChild
(no comment in the source: the name reads as a sentence) add childno extension
Label
shapeno extension
composed example
o1 = new stzParseTree("S")
? o1.Label()
#--> Scomposed from the signature, run for this pageWord
(no comment in the source: the name reads as a sentence) wordno extension
IsLeaf
(no comment in the source: the name reads as a sentence) is leafno extension
composed example
o1 = new stzParseTree("S")
? o1.IsLeaf()
#--> 1composed from the signature, run for this pageChildren
... and what they are, as data: the label each child carries.QCSXTZZZIBWU
NumberOfChildren
(no comment in the source: the name reads as a sentence) number of childrenno extension
composed example
o1 = new stzParseTree("S")
? o1.NumberOfChildren()
#--> 0composed from the signature, run for this pageLeaves
the terminal words, left to right (the tree's "yield")no extension
Text
(no comment in the source: the name reads as a sentence) textno extension
Height
(no comment in the source: the name reads as a sentence) heightno extension
composed example
o1 = new stzParseTree("S")
? o1.Height()
#--> 1composed from the signature, run for this pageSubtrees
navigation ----------------------------------------------------------- every subtree (self included) whose label equals pcLabel (phrase query)no extension
Phrases
the phrases of a kind, as strings (the chunker-style convenience)no extension
NounPhrases
(no comment in the source: the name reads as a sentence) noun phrasesno extension
VerbPhrases
(no comment in the source: the name reads as a sentence) verb phrasesno extension
PrepositionalPhrases
(no comment in the source: the name reads as a sentence) prepositional phrasesno extension
ToBracket
rendering ------------------------------------------------------------ Penn Treebank bracket notation (leaves as word/TAG)also written: Bracketno extension
composed example
o1 = new stzParseTree("S")
? o1.ToBracket()
#--> /Scomposed from the signature, run for this pageToTreeString
an indented, human-readable treeno extension
composed example
o1 = new stzParseTree("S")
? o1.ToTreeString()
#--> /Scomposed from the signature, run for this pageShow
(no comment in the source: the name reads as a sentence) showno extension

