Hello, I need some help on searching a string.
Given a list of nouns = dog, cat and bird.
And a list of verbs = ran, scrurried, flew.
I am giving my program an input of a sentence, "The dog ran."
I need a way to do a search of each individual word of the sentence, Look at the word "the" check it against the list, look at the word "dog" check it against the list, and the word ran. I am trying to create a natural language system, but I am starting on a very rudimentary system first. Is there a way to search the first string up until the space and so forth?