vim-rails
vim-rails copied to clipboard
Fix for alternative spelling of plural (ices)
Fix for alternative spelling of plural for ex. indices, matrices.
This will break "notices, "choices", etc, no? Can you figure out what Rails itself does with this case?
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)
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