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

singularize("pies") yields "py" instead of "pie" #11

Closed
edoardofelici opened this issue Jul 27, 2018 · 1 comment
Closed

singularize("pies") yields "py" instead of "pie" #11

edoardofelici opened this issue Jul 27, 2018 · 1 comment

Comments

@edoardofelici
Copy link

when attempting to singularize the word "pie", "pies" is correctly returned
but reversing "pies" to singular gives "py" instead of pie.

@martinandert
Copy link
Owner

Please use the inflections module to add a rule for this special case. Example:

Inflector.inflections('en', (inflect) => {
  inflect.singular(/^(pie)s/i, '$1');
});

See also defaults.js.

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