lib/zenlish/lang/zenlish_grammar.rb in zenlish-0.1.18 vs lib/zenlish/lang/zenlish_grammar.rb in zenlish-0.1.19
- old
+ new
@@ -105,12 +105,16 @@
rule 'conjunctive_prefix' => 'ConjunctivePronoun noun_phrase verb_phrase'
rule 'identifying_clause' => 'RelativePronoun verb_phrase'
rule 'relative_clause_opt' => 'relative_clause'
rule 'relative_clause_opt' => []
rule 'relative_clause' => 'RelativePronoun tense_phrase'
+ # Sentence 3-Bxa 'Lisa sees a living thing that is very big.
+ rule 'relative_clause' => 'RelativePronoun IrregularVerbBe predicative_complement'
rule 'relative_clause' => 'identifying_clause'
rule 'coordinate_clause' => 'Coordinator simple_sentence'
+ # Implicit subject. 3-05b: I saw this thing and touched some of its parts.
+ rule 'coordinate_clause' => 'Coordinator verb_phrase'
##############
# TENSE PHRASE
##############
@@ -160,11 +164,11 @@
rule 'partitive_predeterminer' => 'IndefiniteQuantifier PrepositionOf' # some of...
# Central determiners: article, demonstrative or possessive
rule 'central_determiners' => 'article'
rule 'central_determiners' => 'demonstrative'
- # central_determiners => possessive
+ rule 'central_determiners' => 'PossessiveDeterminer'
rule 'central_determiners' => []
rule 'article' => 'DefiniteArticle' # 'the'
rule 'article' => 'IndefiniteArticle' # 'a/an', .., any, some, that, those,
rule 'demonstrative' => 'DemonstrativeDeterminer' # 'this', .., that, these, those
# possessive => possessive_determiner # ...my, your, his, her, its, our, their
@@ -204,10 +208,10 @@
rule 'linking_verb' => 'IrregularLinkingVerb'
rule 'mental_verb' => 'IrregularVerbKnow'
rule 'mental_verb' => 'IrregularVerbThink'
- rule 'direct_speech' => 'Colon Quote declarative_simple_sentence Period Quote'
+ rule 'direct_speech' => 'Colon Quote prose Quote'
rule 'direct_speech' => 'Preposition noun_phrase Colon Quote declarative_simple_sentence Period Quote'
rule 'direct_speech' => 'Colon declarative_simple_sentence'
##################
# ADJECTIVE PHRASE