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

strutils.plural does not handle acronyms correctly #291

Open
mhucka opened this issue Aug 4, 2021 · 1 comment
Open

strutils.plural does not handle acronyms correctly #291

mhucka opened this issue Aug 4, 2021 · 1 comment

Comments

@mhucka
Copy link

mhucka commented Aug 4, 2021

If the word to be pluralized is an acronym like "DOI", then plural will match case and produce "DOIS", which is not the desired result in many (most?) cases. A better result would be "DOIs", to match its use in sentences such as "There are a total of 53 DOIs associated with this journal".

I realize acronyms are especially challenging, because it's basically impossible for plural to recognize every conceivable acronym. Perhaps a better solution would be to have some kind of option or override on the case-matching part of the code, such that the user could say "don't match case".

@mahmoud
Copy link
Owner

mahmoud commented Aug 4, 2021 via email

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