2.5 Practical Session

Practical session.

Now, we will again do some simple exercises going through the programs of this section step for step.

  1. Start Prolog and consult parse.pl, and haha.pl. Use trace to step through some examples so you understand clearly what the additional argument is doing.

  2. Restart Prolog and consult trans.pl, and a2b.pl. Use trace to step through some examples so you understand clearly how trans.pl works.

  3. Consult adoubler.pl. Use trace again and step through some examples so you understand clearly how. Look how #-symbols are handled.

  4. When you are sure you understand trans.pl properly, extend it so that it can cope with categories. This is not difficult: all you have to do is extend the definition of the traverse/5- predicate.

  5. Then put the morphological transducer (which parses English noun phrases, see Section 2.3.4) into Prolog notation and test it with your new predicates.

  6. Finally, pick another phenomenon of inflectional morphology in some language you know. Try to write down a transducer as a graph. Then put it in Prolog and test it with the programs provided in this section.


Kristina Striegnitz, Patrick Blackburn, Katrin Erk, Stephan Walter, Aljoscha Burchardt and Dimitra Tsovaltzi
Version 1.2.5 (20030212)