我见过有人问过类似的问题,但没有任何好的答案。我现在遇到了同样的问题,有人可以帮忙吗?
见下文:
输入:单词列表
输出:识别复数形式的名词,如果可能的话将它们转换成单数形式
WordNet will be able to help with stripping plurals. It is a full morphological dictionary of English language.
The JAWS is a simple Java API which talks to WordNet, though others exist.
http://lyle.smu.edu/~tspell/jaws/index.html
Note, WordNet will not perfectly deal with the various idiosyncrasies of English, from their FAQ:
Along with a set of irregular forms (e.g. children - child), it uses a sequence of simple rules, stripping common English endings until it finds a word form present in WordNet. Furthermore, it assumes its input is a valid inflected form. So, it will take "childes" to "child", even though "childes" is not a word.