Definite-Clause-Grammar-Parser

A parse should result in building a parse tree for the input which is one of the following English sentences

a) The young boy put a big box in the large empty room after school.

b) The old woman gave the poor young man a white envelope in the shed behind the building.

c) The pretty woman who worked with the old man secretly gave me three letters.

d) Every boy quickly climbed some big tree .

you can test the code by typing into the prolog compiler this predicate

sentence(Parse_tree, ["put your sentence here and split it by ',' and remove the capital letters and spaces"], []).