General schema:
XY Z
X consists of Y followed by Z
N
Det N
Det Adj N
Det N PP
NP
NP
Det
John
the
boy
Det Adj N
a
little boy
NP
Det N
a
boy
PP
P
in
NP
Det
a bubble
in
from a boy in a bubble
P
P NP
PP
in
from
NP
Det N
a
boy
PP
P
in
NP
Det
a bubble
Recursion
NP
Det N
the cat
PP
P
NP
on Det
PP
the mat P
NP
in Det
the house
PP
P
on
NP
Det
the
street
sang
ate the cake
ate the cake hungrily
sang a song in the shower
fell into the pond slowly
V
V NP
V NP Adv
V NP PP
V PP Adv
VP
VP
sang
ate
VP
NP
Det
the
cake
sang
NP
Det N
PP
P
NP
a song
Adv
badly
in Det N
the shower
Structural ambiguity
discuss [sex with Dr. Ruth]
Structural ambiguity
discuss [sex with Dr. Ruth]
VP
V
NP
discuss N
sex
V
PP
NP
PP
discuss sex P
NP
NP
Sentences
S NP (Aux) VP
S
NP
VP
Det
The
dog
ate
S NP VP
NP
Det
the
bone
S
NP
Aux
Det
The
dog
S NP Aux VP
will
VP
V
eat
NP
Det
the
bone
Conjunction
X X conj X
Conjoined phrases
NP
NP
Conj
NP
Det N
Det N
the cat
NP NP Conj NP
and
the dog
NP Det N
Conjoined sentences
I bought a book, but I returned it.
S
NP
I
conj
VP
but
NP
bought a book
S S conj S
S
S NP VP
NP
I
VP
V
returned
NP
it