Can you programmatically detect pluralizations of English words, and derive the singular form?

后端 未结 6 1836
灰色年华
灰色年华 2020-12-15 13:33

Given some (English) word that we shall assume is a plural, is it possible to derive the singular form? I\'d like to avoid lookup/dictionary tables if possi

6条回答
  •  春和景丽
    2020-12-15 14:09

    No - English isn't a language which sticks to many rules.

    I think your best bet is either:

    • use a dictionary of common words and their plurals (or group them by their plural rule, eg: group words where you just add an S, words where you add ES, words where you drop a Y and add IES...)
    • rethink your application

提交回复
热议问题