The goal of this assignment is to implement a simple LISP program that will take a sentence as an input and then figure out the rule that the given sentence is based on.
Please refer to Problem 22.9 in the textbook. Your program should support the three grammar rules stated in this exercise. Internally in your code, you should define your lexicon which is basically a set of Pronouns, a set of V's, a set of Adv's, a set of Prep's etc. Given a sentence like ``Someone walked slowly to the supermarket'' as an input, your program should find out which grammar rule this sentence is based on.
Please submit a
ReadMe file to tell the version of LISP that you used, any
assumptions or comments and how to run your
program.
In your ReadMe file you must indicate some sample runs; at least one sentence for each rule.