Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Inflector][String] Fixed pluralize "coupon"#40499
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
derrabus commentedMar 17, 2021
This issue needs to be fixed on 4.4 (inflector component). |
Nyholm commentedMar 17, 2021
You are correct. The bug existed in 4.4 in the inflector component too. I guess it will be merged up properly if I target 4.4. The PR is updated. |
| ['noi',3,true,true,'ions'], | ||
| // coupon (coupons) | ||
| ['nopuoc',6,true,true,'coupons'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
maybe we can widen this to['nop', 3, true, true, 'pons'],
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I confirm we should do this, seehttps://en.wiktionary.org/wiki/Category:English_plurals_ending_in_%22-a%22: it lists no English words that end withpon and have apa plural.
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
(updated)
nicolas-grekas commentedMar 17, 2021
Thank you@Nyholm. |
Nyholm commentedMar 18, 2021
Thank you for merging. |
Uh oh!
There was an error while loading.Please reload this page.
The rule for "bacteria (bacterium), criteria (criterion), phenomena (phenomenon)" is producing this behaviour. I added an exception to the "criterion exception".
"coupon" is an old French word, that is maybe why it does not follow the classic "on" rule... I dont know. The test passes and I dont think I've added any side-effects.
This is also my first time working with the
EnglishInflector.