It really depends on what you mean programmatically. Part of the English language is working on clear rules, and part is not. He should do mainly with frequency. For a quick overview, you can read Pinker's Words and Rules, but do yourself a favor and don't completely give away the whole generative theory of linguistics. There is much more empiricism than this school of thought really attaches to persecution.
lemmatized. , , . lemmatizers, , , Morpha Lemmatizer. , , , .
, . Porter Stemmer, , .