Suppose I have the following CFG rules:
S -> NP VP NP -> (D) NOM VP -> V (NP) (NP) NOM -> N NOM -> NOM PP VP -> VP PP PP -> P NP X -> X+ CONJ X
How should I draw the tree diagram of this sentence?
Most cats and dogs with fleas live in the neighbourhood.
As I understand it, the sentence has two different interpretations, with one attributing
fleas to both
dogs and the other only to
For the case of attributing
fleas to only dogs I drew the following diagram:
Now for the second interpretation, I figured I should add the NOM substructure to the first NOM before CONJ:
This seems to be correct to me, because it reflects the fact that the attribute is equally applicable to both NOMs. But on the other hand, I am writing words on the added branch that aren't there (have been deleted for avoiding repetition) and the tree reads a longer sentence.
Is my parsing correct and if not how should I make it work right?