Grammar Writing: Week 7: Difference between revisions

From English Grammar
Jump to navigation Jump to search
 
(7 intermediate revisions by one other user not shown)
Line 27: Line 27:
<span style="color: blue>Task 2:</span>
<span style="color: blue>Task 2:</span>
  Add grammar rules so that the following two sentences are correctly recognized: "she shouts" and "she receives help".
  Add grammar rules so that the following two sentences are correctly recognized: "she shouts" and "she receives help".
<span style="color: blue>Task 3:</span>
Add "gives" and "support" to the lexicon and a rule to analyze the sentence: "she gives her support".


<!--<span style="color: blue>Solution:</span>
<!--<span style="color: blue>Solution:</span>
  noun_verb_rule      => a sentence phrase with two children: a noun word + a verb word.
  noun_verb_rule      => a sentence phrase with two children: a noun word + a verb word.
  verbphrase_rule    => a verb phrase with two children: a verb word + a noun word.
  verbphrase_rule    => a verb phrase with two children: a verb word + a noun word.
  noun_verbphrase_rule => a sentence phrase with two children: a noun word + a verb phrase.-->
  noun_verbphrase_rule => a sentence phrase with two children: a noun word + a verb phrase.
 
verbphrase_rule2 => a verb phrase with three children: a verb word + a noun word + another noun word.
 
-->


== Grammar 2 (Case) ==
== Grammar 2 (Case) ==
Line 59: Line 63:


<span style="color: blue>Task:</span>
<span style="color: blue>Task:</span>
  Add the same lexicon entries and rules. "her shouts" should not be recognized by the grammar!
  Add the same lexicon entries and rules. This time, "her shouts" should not be recognized by the grammar!
 
 
 


== Grammar 3 (Vform) ==
== Grammar 3 (Vform) ==
Line 96: Line 97:


<span style="color: blue>Task:</span>
<span style="color: blue>Task:</span>
  Add the same lexicon entries and rules. "she run" should not be recognized by the grammar!
  Add the same lexicon entries and rules. This time, "she run" should not be recognized by the grammar!
 
 


== Grammar 4 (Complements) ==
== Grammar 4 (Complements) ==
Line 131: Line 130:


<span style="color: blue>Task:</span>
<span style="color: blue>Task:</span>
  Add the same lexicon entries and rules. "she receives", "she shouts help" should not be recognized by the grammar!
  Add the same lexicon entries and rules. This time, "she receives", "she shouts help" should not be recognized by the grammar!
 
 




Line 139: Line 140:
Navigation:  
Navigation:  
<div align="center">
<div align="center">
   [[Grammar_Writing|'''Main Page''']] &nbsp; [[Grammar_Writing:_Week_2| '''Week 2''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_3| '''Week 3''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_4| '''Week 4''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_5| '''Week 5''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_6| '''Week 6''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_7| '''Week 7''']] &nbsp; '''Week 8''' &nbsp;&nbsp;   
   [[Grammar_Writing|'''Main Page''']] &nbsp; [[Grammar_Writing:_Week_2| '''Week 2''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_3| '''Week 3''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_4| '''Week 4''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_5| '''Week 5''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_6| '''Week 6''']] &nbsp;&nbsp; '''Week 7''' &nbsp; [[Grammar_Writing:_Week_8| '''Week 8''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_9| '''Week 9''']]  
</div>
</div>

Latest revision as of 16:09, 17 December 2017

Tutorial Session (November 27th)

Grammar 1 (Basic)

type_hierarchy
bot
   bool   
      minus   
      plus   
   sign   syntax:part_of_speech   
      phrase   dtrs:list   
      word   
   part_of_speech   
      sentence   
      verb   
      noun   
   list   
      ne_list   tl:list   hd:bot   
      e_list   
.

Task 1:

Add lexicon entries for "she", "her", "help", "receives", "shouts", "run"

Task 2:

Add grammar rules so that the following two sentences are correctly recognized: "she shouts" and "she receives help".

Task 3:

Add "gives" and "support" to the lexicon and a rule to analyze the sentence: "she gives her support".


Grammar 2 (Case)

type_hierarchy
bot
   sign   syntax:syntax   
      phrase   dtrs:list   
      word   
   list   
      ne_list   tl:list   hd:bot   
      e_list   
   pos   
      verb   
      noun   case:case   
      s   
      prep   
   syntax   head:pos   
   case   
      acc   
      nom   
.

Task:

Add the same lexicon entries and rules. This time, "her shouts" should not be recognized by the grammar!

Grammar 3 (Vform)

type_hierarchy
bot
   sign   syntax:syntax   
      phrase   dtrs:list   
      word   
   list   
      ne_list   tl:list   hd:bot   
      e_list   
   vform   
      fin   
      nonfin   
         prp   
         pfp   
         base   
   pos   
      verb   vform:vform   
      noun   case:case   
      s   
      prep   
   syntax   head:pos   
   case   
      acc   
      nom   
.


Task:

Add the same lexicon entries and rules. This time, "she run" should not be recognized by the grammar!

Grammar 4 (Complements)

type_hierarchy
bot
   sign   syntax:syntax   comps:list  
      phrase   dtrs:list   
      word   
   list   
      ne_list   tl:list   hd:bot   
      e_list   
   vform   
      fin   
      nonfin   
         prp   
         pfp   
         base   
   pos   
      verb   vform:vform   
      noun   case:case   
      s   
      prep   
   syntax   head:pos   
   case   
      acc   
      nom   
.


Task:

Add the same lexicon entries and rules. This time, "she receives", "she shouts help" should not be recognized by the grammar!





Navigation:

 Main Page    Week 2     Week 3     Week 4     Week 5     Week 6    Week 7    Week 8      Week 9