I've actually found one called "textstat", but it doesn't recognize different word forms of one word.
So are there programs that do detect comía, come, cómelo, comiera as forms of comer?
Linguistics Stack Exchange is a question and answer site for professional linguists and others with an interest in linguistic research and theory. It only takes a minute to sign up.
Sign up to join this communityI've actually found one called "textstat", but it doesn't recognize different word forms of one word.
So are there programs that do detect comía, come, cómelo, comiera as forms of comer?
You can try the Spanish stemming algorithm found at http://snowball.tartarus.org/algorithms/spanish/stemmer.html.
Have you had a look at ISpell or, better yet, HunSpell (for it supports Unicode)?
These are more intended for spelling-correction. However, since they also try to grok the conjugations and flexions for languages with them, they could be helpful. These programs expose an interface so you can call them from other programs (such as a word processor or a browser), you could create a script that reads your text file and calls it continuously not for the sake of spelling but to get the "base" word ("comer" in your example)