Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect plural forms of words ending with 'us'. #272

Open
dsaw opened this issue Apr 13, 2019 · 1 comment · May be fixed by #276
Open

Incorrect plural forms of words ending with 'us'. #272

dsaw opened this issue Apr 13, 2019 · 1 comment · May be fixed by #276

Comments

@dsaw
Copy link

dsaw commented Apr 13, 2019

Some words which end with -us that have plural forms with -i are giving incorrect results.

>>> word_list = ['focus','cactus','fungus','nucleus','syllabus']
>>> for w in word_list:
...     print(pluralize(w))
...
foci
cactuss
fungi
nucleuss
syllabuss

Should be cacti, nuclei and syllabi respectively. There are enough words of this sort that can form a group. The singularize function also converts incorrectly.

>>> singularize('fungi')
'fungi'
@k4ni5h
Copy link

k4ni5h commented Apr 27, 2019

Include these words in plural_categories in "us-i*" will solve this issue.

word_list = ['focus','cactus','fungus','nucleus','syllabus']
[pluralize(a) for a in word_list]
['foci', 'cacti', 'fungi', 'nuclei', 'syllabi']

@k4ni5h k4ni5h linked a pull request Apr 29, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants