vim-rails icon indicating copy to clipboard operation
vim-rails copied to clipboard

Fix for alternative spelling of plural (ices)

Open gernberg opened this issue 9 years ago • 3 comments

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

gernberg avatar Sep 23 '15 17:09 gernberg

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

tpope avatar Sep 24 '15 19:09 tpope

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)

gernberg avatar Sep 25 '15 08:09 gernberg

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

zorab47 avatar Sep 25 '15 16:09 zorab47