The app I'm currently working on requires me to determine the part of speech of a word in NSString
.
So basically is there a library/database/class which you can access in Objective C which allows one to check if a single word (in the form of a NSString
) is a noun, an adjective, an adverb or a verb?
Something along the lines of:
NSString *foo="cat";
if ([foo wordIsNoun]) {
//do something
};
On a similar but slightly unrelated note, is it possible to check if two NSString
containing verbs of the same stem but different tense (ask, asking, asked, etc) have the same stem? It would be very useful as well.