Reputation: 869
I'm a Chinese student and I'm learning English words using a flashcard software. I think highlighting a word's root and affixes will be very useful to remember that word. So I'm looking for an algorithm or a look-up table which could extract the roots and affixes.
For example:
foo("agriculture") -> ["agri", "cult", "ure"]
foo("anniversary") -> ["ann", "vers", "ary"]
Upvotes: 2
Views: 1290
Reputation: 1246
You need to perform morphological analysis. That is, to split the input text into morphemes.
I found this tool you can try online: http://nlpdotnet.com/services/Morphparser.aspx
Also, you might want to check ACL wiki (http://aclweb.org/aclwiki/index.php?title=Morphology_software_for_English), there is a bunch of tools you might be interested in.
Good luck.
Upvotes: 1