Symbols
S = Sentence
NP = Noun Phrase
VP = Verb Phrase
PP = Preposition Phrase
AP = Adjective Phrase
Det = Determiner (the, a, those)
N = Noun (person, place or thing)
V = Verb (action word)
Prep = Preposition (in, on, between, under, in front, behind)
Qual = Qualifier (a lot, almost)
Adj = Adjective (describes noun, colours, tall, skinny)
Deg = Degree (very, extremely, barely)
|
Rules
Starting: S
Non-terminating: S, NP, VP, PP, AP
Terminating: Det, N, V, Adj, Prep, Qual, Deg
[] optional
* can have more than one
S -> NP VP
NP -> [Det] [AP]* N [PP]
VP -> [Qual] V [NP]* [PP]
PP -> [Qual] Prep [NP]
AP -> [Deg] Adj [Prep]
|