# simple english grammar # note we can repeat RHS pattersn to make them more probable S -> S CONJ S | NP VP | NP VP | NP VP | NP VP | NP VP | NP VP CONJ -> and | and | and | or | but | while NP -> Art Adjs N PPs Adjs -> Adj Adjs | PPs -> PP | PP | PP | PP PPs | | | | | | | | | PP -> Prep NP VP -> V NP Art -> the | the | the | a |a | a | some | no N -> man | ball | woman | table | penguin | garden gnome | ghost | apple V -> hit | took | saw | liked | loved | painted | wanted Adj -> large | funny | weird | crazy | green | grotesque | creepy Prep -> in | on | under | of | near | over | next to