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

"Guppy" -> "Guppys" instead of "Guppies" and others #206

Closed
Gheed0123 opened this issue Mar 13, 2024 · 1 comment
Closed

"Guppy" -> "Guppys" instead of "Guppies" and others #206

Gheed0123 opened this issue Mar 13, 2024 · 1 comment

Comments

@Gheed0123
Copy link

inflect.engine().plural_noun("Guppy") returns "Guppys"
inflect.engine().plural_noun("guppy") returns "guppies"

I manually fixed by removing capital letter at start: ''.join([txt[:1].lower(),txt[1:]])

and readding later with ''.join([txt[:1].upper(),txt[1:]])
string.capitalize() and string.lower() dont work in some cases

There might be another way, but I didnt bother looking

@jaraco
Copy link
Owner

jaraco commented Mar 31, 2024

This looks like a duplicate of #201.

@jaraco jaraco closed this as completed Mar 31, 2024
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

No branches or pull requests

2 participants