Fourth homework: Prolog and Natural Language Processing
I give up. All homeworks are due by December 14th, before
midnight.
For this homework you are to implement a query system in prolog.
Certain "facts" will be accerted in a prolog file, such as
"true([the,ball,is,on,the,floor])." The system of rules you create
should be able to receive a query such as
"question([where,is,the,ball], X)" and reply with X=floor. Your code
should present examples to deal with at least two"wh questions" (who,
where, why, etc.) You can use any algorithms, set of rules, or "tricks"
that will get the problem solved.