Hey all. I have no idea how to do this, but basically what I'm trying to do is detect a certain string in a sentence without knowing that string. What I'm trying to do is allow a user to enter in their favorite something so that the system can read it and store it. For example, I want the user to be able to type something like, "My favorite color is blue," and have the system store that information in a string list, let's say a list of the user's favorite things. That way when the user asks the system what the user's favorite color is, it will respond with the information the user entered in.
Is there any way you can detect the string that follows the word "favorite" so that the system knows what favorite item it is?
↧