Exercise 3, Grammar Engineering

Adjectives and Adverbs

Download grammar3.lfg and take a good look at it. Expand it so that adjectives and adverbs are integrated into sound analyses. That is, the following sentences should be analyzed:

You will need to add some adjectives and adverbs to your lexicon and make sure that you expand your c-structure rules to cover adverbs. Note that you should also change your treatment of adjectives, so that you have something like the following:

 
NP --> (D)
       AP*: ! $ (^ ADJUNCT);
       N. 
 
AP --> Adv*: ! $ (^ ADJUNCT);
       A.

That is, you should introduce an Adjective Phrase (AP) and allow adverbs to modify adjectives within this AP.

 

PPs and constraining equations

The grammar grammar3.lfg already contains a start on implementing PPs. Overall, you should be able to treat three kinds of PPs: ADJUNCTs (with semantic Ps) as well OBLs with both semantic and non-semantic Ps.

The following sentences should work. Note that some of them will get more than one possible reading. This is okay as long as the correct one is among them. We will learn next time how to constrain the space of possibilities.

Note that in addition to the PPs in the VP, which are already there to some extent in grammar5.lfg, you are required to provide for the possibilities of PPs within an NP.

 

Pronouns

Expand your grammar to include pronouns. The following sentences should work:

Make sure the following sentences are rejected as ungrammatical:

In class, we agreed on the following f-structure for possessive pronouns (here the example is for I):

 
SPEC [POSS [PRED 'I', NUM sg, PERS 1, PRON-TYPE poss]]

NB: Whenever you have to build a new phenomenon into your grammar and you are not sure how to analyze it, a good strategy is to look at the big ParGram grammars available via the INESS XLE Webinterface for guidance.

 

Please submit your exercises to Martin Forst by 8 pm.


Relevant Reading Material