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

NameUtils/Pluralizer: Fix unusual singularizations for some common words (choices; releases) #1226

Merged
merged 3 commits into from
Mar 3, 2021

Conversation

rmuch
Copy link
Contributor

@rmuch rmuch commented Nov 5, 2018

Currently, "releases" takes the "sis" <-> "ses" suffix rule, and therefore becomes "releasis" when converted from plural to singular.

This patch fixes the problem by adding "release" as a special word, so that toSingular correctly resolves the singular form.

rmuch added 2 commits November 5, 2018 17:32
Currently, "releases" takes the "sis" <-> "ses" suffix rule, and therefore becomes "releasis"
@rmuch
Copy link
Contributor Author

rmuch commented Nov 21, 2018

Noticed another weird one today with "Choices" being singularized to "Choicis". Will update the pull request with another special word. I wonder how many more common words have this problem?

@rmuch rmuch changed the title Add "release" as a special word to Pluralizer NameUtils/Pluralizer: Fix unusual singularizations for some common words (choices; releases) Nov 21, 2018
@dsyme
Copy link
Contributor

dsyme commented Mar 21, 2019

Close/open to re-run CI

@dsyme dsyme closed this Mar 21, 2019
@dsyme dsyme reopened this Mar 21, 2019
@dsyme
Copy link
Contributor

dsyme commented Mar 29, 2019

@ovatsus This seems legit, merging to be in 3.0.3

Copy link
Collaborator

@cartermp cartermp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this.

@cartermp cartermp merged commit 097ac7f into fsprojects:master Mar 3, 2021
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 this pull request may close these issues.

3 participants