lib/zenlish/parser/zenlish_grammar.rb in zenlish-0.1.03 vs lib/zenlish/parser/zenlish_grammar.rb in zenlish-0.1.04

- old
+ new

@@ -22,32 +22,40 @@ rule 'noun_phrase' => 'nominal' rule 'noun_phrase' => 'determiner nominal' rule 'noun_phrase' => 'numeral nominal' # Case: ... one of these things. - rule 'noun_phrase' => 'numeral Preposition DemonstrativeDeterminer noun_phrase' + rule 'noun_phrase' => 'numeral Preposition DemonstrativeDeterminer noun_phrase' + rule 'noun_phrase' => 'numeral Preposition DemonstrativeDeterminer' rule 'noun_phrase' => 'determiner numeral nominal' # CGE p.359, 360: of + definite noun phrase - rule 'noun_phrase' => 'determiner Preposition DemonstrativeDeterminer noun_phrase' - rule 'noun_phrase' => 'ProperNoun' + rule 'noun_phrase' => 'determiner Preposition DemonstrativeDeterminer noun_phrase' + rule 'noun_phrase' => 'ProperNoun' + rule 'noun_phrase' => 'DemonstrativePronoun' rule 'noun_phrase' => 'IndefinitePronoun' rule 'nominal' => 'CommonNoun' rule 'nominal' => 'Adjective CommonNoun' rule 'nominal' => 'Adjective CommonNoun comparative_clause' + rule 'nominal' => 'Adjective comparative_clause' rule 'determiner' => 'determiner single_determiner' rule 'determiner' => 'single_determiner' rule 'single_determiner' => 'DemonstrativeDeterminer' rule 'single_determiner' => 'DefiniteArticle' rule 'single_determiner' => 'IndefiniteQuantifier' rule 'verb_phrase' => 'lexical_verb' - rule 'verb_phrase' => 'lexical_verb verb_complement' + rule 'verb_phrase' => 'lexical_verb verb_complement' + rule 'verb_phrase' => 'IrregularVerbBe verb_be_complement' rule 'verb_complement' => 'noun_phrase' rule 'verb_complement' => 'adverb_phrase' rule 'verb_complement' => 'propositional_phrase' rule 'verb_complement' => 'noun_phrase adverb_phrase' rule 'verb_complement' => 'noun_phrase propositional_phrase' + rule 'verb_be_complement' => 'adjective_as_complement' # Specific to be as lexical verb + rule 'adjective_as_complement' => 'DegreeAdverb Adjective' + rule 'adjective_as_complement' => 'Adjective' rule 'negative_verb_phrase' => 'IrregularVerbBe AdverbNot verb_complement' + rule 'negative_verb_phrase' => 'IrregularVerbBe AdverbNot Adjective' rule 'negative_verb_phrase' => 'AuxiliaryDo AdverbNot verb_phrase' rule 'lexical_verb' => 'IrregularVerb' rule 'lexical_verb' => 'IrregularVerbBe' rule 'numeral' => 'Cardinal' rule 'comparative_clause' => 'comparative_start noun_phrase'