Your assingment seems like something that I have been assigned to check up on by my school''s invention club. One of the ideas in the pipeline is to make a program that can respond to questions and statements in a humanlike way. I know there are huge research labs dedicated to this kind of thing, and we are not trying to make an ariticial person, just an app that can usually respond in an intelligible manner to a question. To figure out if we can even scratch the surface of this project, I have been voted to make a program that identifies types of sentences and what the words within it are (subject, verb, direct object, etc). I am thinking of using a tree (perhaps it will eventually become a stupid version of a neural net
![](smile.gif)
. We have reasoned that a little randomness and basic logic (with a big dictionary), combined with the known words of the question or sentence can be used to create a more-or-less suitable response. I think that even if we fail it will be fun
![](smile.gif)
Your project uses the tree in a different manner, but the fact that you could only store the words once makes me think you could do something similar to this with your program quite easily.
--------------------
You are not a real programmer until you end all your sentences with semicolons;
(c) 2000 ROAD Programming You are unique. Just like everybody else.
"Mechanical engineers design weapons; civil engineers design targets."
"Sensitivity is adjustable, so you can set it to detect elephants and other small creatures." -- Product Description for a vibration sensor
Yanroy@usa.com