This week I have been improving my phrase definitions for parsing sentences. I added another rule that accepts modifiers before the phrase head, so for example “big dog” has an adjective “big” that modifies “dog”. This is in contrast to “dog with a big tail” where “with a big tail” comes after “dog”. In both cases they are considered modifiers.
Today I was working on “the dog with a stick ran”. Here “with a stick” is a modifier to “dog”. But it can also be considered a modifier to “ran”. This is one of the things that Yoda does to sentence structures, is the modifiers are moved around in the sentence.
Here is a tree showing “with a stick” as a modifier to dog.
Here is a tree of the same sentence showing “with a stick” as a modifier to “ran”.

