lib/zenlish/lang/zenlish_grammar.rb in zenlish-0.1.22 vs lib/zenlish/lang/zenlish_grammar.rb in zenlish-0.1.23
- old
+ new
@@ -53,10 +53,12 @@
rule 'predicative_complement' => 'adjective_phrase relative_clause_opt'
# 2-28b X is alive before this moment.
rule 'predicative_complement' => 'adjective_phrase adverb_phrase noun_phrase_opt'
# X is far from the start.
rule 'predicative_complement' => 'adverb_phrase_opt prepositional_phrase'
+ # something that was not here before.
+ rule 'predicative_complement' => 'adverb_phrase_star'
#################
# Complex sentence
#################
# Case of dropped ´that´ conjunction
@@ -96,10 +98,12 @@
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 affirmation'
+ # Sentence 3-18b: something that was not here before.
+ rule 'relative_clause' => 'RelativePronoun negation'
rule 'relative_clause' => 'identifying_clause'
rule 'coordinate_clause' => 'Coordinator simple_sentence'
# Sentence 3-11b K happens because J happens or because J does something.
rule 'coordinate_clause' => 'Coordinator subordinated_clause'
@@ -132,10 +136,11 @@
# nowhere; anyone, anybody, anything, anywhere; everyone, everybody,
# everything, everywhere, the attributive adjective phrase occurs as a postmodifier
rule 'pre_head_np' => 'determiners adjective_phrase_opt'
rule 'head_np' => 'CommonNoun'
rule 'head_np' => 'ProperNoun'
+ rule 'head_np' => 'Pronoun'
rule 'head_np' => 'PersonalPronoun'
rule 'head_np' => 'DemonstrativePronoun'
rule 'head_np' => 'IndefinitePronoun'
# rule 'head_np' => 'Cardinal' # ... as indefinite pronoun in complement "There were three pies. I ate one."
rule 'post_head_np' => 'adjective_phrase_opt prepositional_phrases clause_noun_opt'
@@ -239,9 +244,11 @@
rule 'postmodifiers_adj' => []
################
# ADJVERB PHRASE
################
+ rule 'adverb_phrase_star' => 'adverb_phrase_star adverb_phrase'
+ rule 'adverb_phrase_star' => []
rule 'adverb_phrase_opt' => 'adverb_phrase'
rule 'adverb_phrase_opt' => []
rule 'adverb_phrase' => 'premodifiers_adv head_adverb'
rule 'premodifiers_adv' => 'adverb_occurrence'
rule 'premodifiers_adv' => []