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

Fix for alternative spelling of plural (ices) #434

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gernberg
Copy link

Fix for alternative spelling of plural for ex. indices, matrices.

Fix for alternative spelling of plural for ex. indices, matrices.
@tpope
Copy link
Owner

tpope commented Sep 24, 2015

This will break "notices, "choices", etc, no? Can you figure out what Rails itself does with this case?

@gernberg
Copy link
Author

Yes you're right ... also faces, places and so on.
I'll see if I can make a solution closer to how rails does it. The reason I added it was because rails convers matrix and index to matrices and indices (both are used in projects I'm working on)

@zorab47
Copy link

zorab47 commented Sep 25, 2015

Rails has a set of inflection rules for specific words like matrix, which override the default rule. https://github.com/rails/rails/blob/master/activesupport/lib/active_support/inflections.rb

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