Grammar Writing: Week 9: Difference between revisions

From English Grammar
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 85: Line 85:


<span style="color: blue>HOMEWORK</span>
<span style="color: blue>HOMEWORK</span>
  Load the previous type hierarchy and make the necessary modifications to your grammar (to the types, the lexicon and to the rule set) so as to recognize the following sentences:
  Load the type hierarchy (from above) and make the necessary modifications to your grammar (to the types, the lexicon and to the rule set) so as to recognize the following sentences:






# Donald likes her.
# trump likes twitter.
# Donald is funny.
# trump is happy.
# Donald depends on her.
# trump is fond of the idea.
# Donald believes the earth is flat.
# trump depends on him.
# trump depends on the popularity.
# trump believes the earth is flat.
# tweet of the president
# discussion with putin about merkel
# cnn reports fake news to the students.
 
 
Note that the COMPS list should contain the specific elements that the verbs want to combine with, e.g., "likes" wants a nominal sign, "is" wants an adjective, depends a preposition, etc.
Add all necessary rules and upload your grammar to verify that it works well!
 
(Contact us in case you're having trouble. nschenk@em.uni-frankfurt.de)
 
 
<br>
<br>
Navigation:
<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; [[Grammar_Writing:_Week_8| '''Week 8''']] &nbsp;&nbsp;  '''Week 9''' &nbsp;&nbsp;  [[Grammar_Writing:_Week_10| '''Week 10''']] &nbsp;&nbsp;  [[Grammar_Writing:_Week_11| '''Week 11''']]

Latest revision as of 13:22, 8 January 2018

More Complement Types

So far, we have only encountered three kinds of verbs, intransitive, transitive, and ditransitive verbs:

  1. dances: COMPS <>
  2. likes: COMPS <NP>
  3. gives: COMPS <NP,NP>

But, there are many more kinds of verbs in English. Restricting ourselves to verbs with one complement, we find the following:

  1. likes: COMPS <NP>
  2. is: COMPS <AP>
  3. depends: COMPS <PP>
  4. believes: COMPS <sentence>

Task 1:

Make sure that your type hierarchy contains the parts of speech: noun, verb, adj, and prep. If it lacks one or more of these parts of speech, then add them.

Task 2:

Add the following words to the lexicon, giving each an empty COMPS list: she, her, happy.

Task 3:

Add the preposition on to the lexicon with  COMPS <NP>.

Task 4:

If necessary, add lexical entries for the verbs likes, is, depends, and believes. Make sure that each verb has the COMPS list given above!

Question

We want to write rules that license all the VPs below. How many rules do we need for each VP and how many VP rules do we need altogether?
  1. likes her. Number of VP rules: __
  2. is happy. Number of VP rules: __
  3. depends on her. Number of VP rules: __
  4. believes she is happy. Number of VP rules: __

Total number of VP rules needed: __

Task 5

Write the VP rules needed to license the VPs above. For the VP depends on her, you will need to write a PP rule as well.

The greatest thing since the invention of sliced bread: the concept is the same as

Clearly, it is very tedious to write a different VP rule for every verb type that differs from the other verb types from the kind of complement that verb needs to combine with. But actually, things are much worse than this:

  1. Not only do verbs with one complement differ from each other in what kind of complement they want to combine with, but the verbs that take two complements do, too. When you count all the verb types, you end up with several dozens, which means that you will also need several dozens different VP rules!
  2. In addition, nouns, prepositions, and adjectives also can take complements and may differ from each other in the complements they demand. For these, you will need many different rules for NPs, PPs, and APs in addition to the VP rules.
  3. Altogether, you end up with a grammar of more than a hundred rules for phrases.
  4. SCREAM: THERE HAS TO BE A BETTER WAY TO HANDLE THIS PROBLEM!


Grammar 4 (Moving the COMPS Feature from Sign to Syntax)

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   comps:list   
   case   
      acc   
      nom   
.

Homework, due Monday, Dec 18th

Download the new desktoptrale version which contains a bug fix for the save issue encountered in class from this URL [1] (and delete the old one).


HOMEWORK

Load the type hierarchy (from above) and make the necessary modifications to your grammar (to the types, the lexicon and to the rule set) so as to recognize the following sentences:


  1. trump likes twitter.
  2. trump is happy.
  3. trump is fond of the idea.
  4. trump depends on him.
  5. trump depends on the popularity.
  6. trump believes the earth is flat.
  7. tweet of the president
  8. discussion with putin about merkel
  9. cnn reports fake news to the students.


Note that the COMPS list should contain the specific elements that the verbs want to combine with, e.g., "likes" wants a nominal sign, "is" wants an adjective, depends a preposition, etc. Add all necessary rules and upload your grammar to verify that it works well!

(Contact us in case you're having trouble. nschenk@em.uni-frankfurt.de)




Navigation:

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