diff --git a/inflection/__init__.py b/inflection/__init__.py index ffac5ce..4395b33 100644 --- a/inflection/__init__.py +++ b/inflection/__init__.py @@ -88,7 +88,9 @@ 'rice', 'series', 'sheep', - 'species'} + 'species', + 'diabetes' +} def _irregular(singular: str, plural: str) -> None: @@ -419,11 +421,15 @@ def underscore(word: str) -> str: return word.lower() -_irregular('person', 'people') -_irregular('man', 'men') -_irregular('human', 'humans') +_irregular('cow', 'kine') _irregular('child', 'children') -_irregular('sex', 'sexes') +_irregular('foot', 'feet') +_irregular('goose', 'geese') _irregular('move', 'moves') -_irregular('cow', 'kine') +_irregular('person', 'people') +_irregular('sex', 'sexes') _irregular('zombie', 'zombies') + +# more specific rules at the end +_irregular('man', 'men') +_irregular('human', 'humans') \ No newline at end of file diff --git a/test_inflection.py b/test_inflection.py index f1e64a3..1555325 100644 --- a/test_inflection.py +++ b/test_inflection.py @@ -112,7 +112,9 @@ ("cow", "kine"), ("database", "databases"), - ("human", "humans") + ("human", "humans"), + ("goose", "geese"), + ("foot", "feet") ) CAMEL_TO_UNDERSCORE: TestParameters = (