ember-inflector icon indicating copy to clipboard operation
ember-inflector copied to clipboard

"octopi" is incorrect

Open lolmaus opened this issue 5 years ago • 7 comments

The -us-i forms come from Latin.

The word octopus is of Greek origin. It's Greek plural form is octopodes, but in English the word is commonly pluralized according to English rules: octopuses.

Since so many people fall for this error, some dictionaries mark octopi as a possible pluralization. Nevertheless, we should not support this common mistake.

Both the logic and the readme need to be fixed.

Prooflinks:

  • https://grammarist.com/usage/octopi-octopuses/
  • https://en.wikipedia.org/wiki/Octopus

lolmaus avatar Jun 19 '19 12:06 lolmaus

This library aims to be compatible with ruby’s Active-support. So if they have this, we can also change.

stefanpenner avatar Jun 19 '19 14:06 stefanpenner

Well, ActiveSupport has a documentation example that suggests adding octopi as an override: https://github.com/rails/rails/blob/b9ca94caea2ca6a6cc09abaffaad67b447134079/activesupport/lib/active_support/inflector/inflections.rb#L22

lolmaus avatar Jun 19 '19 14:06 lolmaus

Then I suspect we should leave it as is.

That being said, I’m totally not apposed to a secondary language pack / config option, that has a more actively maintained language list

stefanpenner avatar Jun 19 '19 14:06 stefanpenner

the library was Built with this in mind.

stefanpenner avatar Jun 19 '19 14:06 stefanpenner

On the other hand, it has this.

lolmaus avatar Jun 19 '19 14:06 lolmaus

@lolmaus I just check, it does support octopus -> octopi:

gem install activesupport
irb
irb(main):008:0> require 'active_support/all'
=> true
irb(main):009:0> 'octopus'.pluralize
=> "octopi"

We will totally accept a PR to correct this.

stefanpenner avatar Jun 19 '19 15:06 stefanpenner

@lolmaus Thanks for taking the time to care about the little details like this! From one fellow grammar nerd to another, much appreciated <3

wifelette avatar Jun 19 '19 18:06 wifelette