Hi,
I have a program that receives an argument and stores it into a variable. I need to determine if a specific word is part of the argument that was received. I was successful when matching one word to one other word. However, when the argument is a sentence I can not get the program to loop through the sentence and compare every word in the sentence to the one I am looking for. I am having little success using the examples in the Prolog reference manual. Can someone provide a brief example of how I can accomplish this?
Thanks
I have a program that receives an argument and stores it into a variable. I need to determine if a specific word is part of the argument that was received. I was successful when matching one word to one other word. However, when the argument is a sentence I can not get the program to loop through the sentence and compare every word in the sentence to the one I am looking for. I am having little success using the examples in the Prolog reference manual. Can someone provide a brief example of how I can accomplish this?
Thanks