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

PluralWord should return singular word with a 0 quantity #83

Closed
LudovicTOURMAN opened this issue Dec 4, 2019 · 3 comments
Closed

PluralWord should return singular word with a 0 quantity #83

LudovicTOURMAN opened this issue Dec 4, 2019 · 3 comments

Comments

@LudovicTOURMAN
Copy link

LudovicTOURMAN commented Dec 4, 2019

What:
When using the functions Plural/PluralWord with a quantity of 0, those functions return the plural word.

Why:
Plural function is based on PluralWord function. This last one is strictly checking that the quantity is equal to 1 in order to return the singular word.
However, it should also return the singular word in case the value is 0.

Ex: 2 pending requests, 1 pending request, 0 pending request

@BrianLeishman
Copy link

Using the singular form of a word with 0 wouldn't be grammatically correct

@dustin
Copy link
Owner

dustin commented Apr 7, 2020

Yes. Singular is only valid for "single" results. For all others, there's plural.

It's a confusing bit of English. "Plural" refers to more than one. "Singular" refers to exactly one. Zero matches neither of those, but we use the plural form in these cases.

@dustin dustin closed this as completed Apr 7, 2020
@LudovicTOURMAN
Copy link
Author

Ok, thanks for your explanation guys.
A new rule to add to my English grammar 😁

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.

3 participants