|Assignment 5: Prolog: A Natural Language for Natural Language|
CSE 341: Programming Languages|
The University of Washington, Seattle, Winter 2012
|Purposes: The purposes of this assignment are (a) to explore the special syntax in Prolog for working with natural language text that has grammatical structure, and (b) to provide an opportunity to develop a small application in Prolog.|
|Due: Monday, February 13 at 5:00 PM via Catalyst CollectIt.|
Do this assignment individually. DO NOT COLLABORATE on this assignment. This is not a partnership or teamwork assignment.
|What to Turn In:
You should turn in the following files:
EnglishishDCG.pl EnglishishDCG.pdfThe Prolog file should begin with comment lines that give the name of the file, a program name (that is more descriptive and English-like than the filename), the author's (your) name, and a brief description (2-5 lines) of what the program does.
It should contain the definitions of the Prolog predicates ("procedures") that you define.
The PDF file should contain examples of results from your program. There should be a heading at the beginning of your PDF file giving your name, the assignment number, and a few lines of explanation of what the file contains.
Read the Wikipedia article on
Definite Clause Grammar.
Then, using Prolog's special syntax for definite clause grammars,
do the following problems.
|Last updated 7 February at 12:01 PM (extra credit section adjusted); previously updated 6 Feb. at 6:04 PM.|