2.5 Practical Session

Now, we will again do some simple exercises going through the programs of this section step for step, before moving on to something more interesting.

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

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

  3. Restart Prolog and consult trans2.pl, and adoubler.pl. Use trace to step through some examples so you understand clearly how trans2.pl works.

  4. When you are sure you understand trans1.pl and trans2.pl properly, extend trans2.pl so that it can cope with categories. This is not difficult: all you have to do is extend the definition of the traverse predicate. To test what you have done consult numbers.pl and try to translate English number terms into numbers and vice versa.

  5. Then put the morphological transducer to parse English noun phrases into Prolog notation and test it with your new transducer.

  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.


Patrick Blackburn and Kristina Striegnitz
Version 1.2.4 (20020829)