Skip to content

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