pattern icon indicating copy to clipboard operation
pattern copied to clipboard

Singularize bug for words such as rookies and beanies

Open intentionally-left-nil opened this issue 7 years ago • 0 comments

All of the words in singular_ie inside of inflect.py aren't being singularized properly.

The code in question is

    for x in singular_ie:
        if w.endswith(x+"s"):
            return w

Instead of returning the singular form (x), it returns the plural one (w).

I will make a PR

intentionally-left-nil avatar Apr 12 '18 09:04 intentionally-left-nil