lib/zenlish/parser/zenlish_grammar.rb in zenlish-0.1.06 vs lib/zenlish/parser/zenlish_grammar.rb in zenlish-0.1.07

- old
+ new

@@ -17,15 +17,18 @@ rule 'declarative_simple_sentence' => 'negative_sentence' rule 'affirmative_sentence' => 'noun_phrase verb_phrase' rule 'affirmative_sentence' => 'AdverbThere IrregularVerbBe verb_be_complement' rule 'affirmative_sentence' => 'numeral_of IrregularVerbBe verb_be_complement' rule 'affirmative_sentence' => 'DemonstrativePronoun IrregularVerbBe verb_be_complement' + rule 'affirmative_sentence' => 'conjunctive_prefix IrregularVerbBe verb_be_complement' rule 'negative_sentence' => 'noun_phrase negative_verb_phrase' rule 'negative_sentence' => 'AdverbThere negative_verb_phrase' rule 'negative_sentence' => 'numeral_of negative_verb_phrase' + rule 'negative_sentence' => 'conjunctive_prefix negative_verb_phrase' rule 'conditional_statement' => 'condition_subordinate Comma LinkingAdverb declarative_simple_sentence' rule 'condition_subordinate' => 'SubordinatingConjunction declarative_simple_sentence' + rule 'conjunctive_prefix' => 'ConjunctivePronoun noun_phrase verb_phrase' rule 'noun_phrase' => 'simple_noun_phrase' rule 'noun_phrase' => 'compound_noun_phrase' rule 'simple_noun_phrase' => 'nominal' rule 'simple_noun_phrase' => 'determiner nominal' rule 'simple_noun_phrase' => 'numeral nominal' @@ -54,10 +57,11 @@ rule 'single_determiner' => 'DefiniteArticle' rule 'single_determiner' => 'IndefiniteQuantifier' rule 'verb_phrase' => 'verb_group' rule 'verb_phrase' => 'verb_group verb_complement' rule 'verb_phrase' => 'IrregularVerbBe verb_be_complement' + rule 'verb_phrase' => 'IrregularVerbSay Colon Quote affirmative_sentence Period Quote' rule 'verb_complement' => 'noun_phrase' rule 'verb_complement' => 'adverb_phrase' rule 'verb_complement' => 'noun_phrase adverb_phrase' rule 'verb_be_complement' => 'noun_phrase' rule 'verb_be_complement' => 'adjective_as_complement' # Specific to be as lexical verb @@ -70,9 +74,10 @@ rule 'verb_group' => 'lexical_verb' rule 'verb_group' => 'AuxiliaryBe lexical_verb' rule 'lexical_verb' => 'RegularVerb' rule 'lexical_verb' => 'IrregularVerb' rule 'lexical_verb' => 'IrregularVerbBe' + rule 'lexical_verb' => 'IrregularVerbSay' rule 'numeral' => 'Cardinal' rule 'comparative_clause' => 'comparative_start noun_phrase' rule 'comparative_clause' => 'comparative_start affirmative_sentence' rule 'comparative_clause' => 'comparative_start DefiniteArticle Adjective Cardinal' rule 'comparative_start' => 'PrepositionThan'