Exercise 6, Grammar Engineering

The Shuffle Operator

From now on we will be moving away from the English sample grammars towards building individual grammars for your respective languages (or any other language that you choose).

The grammar grammar6.lfg is based on the grammar of the previous exercise, but has been modified for deal with free word order and to move towards a more South Asian looking structure.

Mainly, it introduces the shuffle operator. The shuffle operator is written as a comma. For example the rule below has the effect of allowing any (or no) number of NPs interspersed with any (or no) numbers of PPs.

S --> NP*, PP*. 


Take this grammar and experiment with free word order. The following sentences should work.

Note how the c-structure and the f-structure separation works. For example, even though the first two sentences have a different word order, they both correspond to the same f-structure.

The second and third set of sentences are ambiguous because the grammar does not as yet contain information about case and because the verb agreement in this case is either unhelpful or not helpful enough.

In order to fix this, you need to begin re-engineering the grammar to reflect a language of your choice and build in information about case marking, etc.