doctrine / inflector

Doctrine Inflector is a small library that can perform string manipulations with regard to uppercase/lowercase and singular/plural forms of words.
https://www.doctrine-project.org/projects/inflector.html
MIT License
11.26k stars 137 forks source link

Incorrect singular and plural for addendum and addenda #234

Open robertmylne opened 1 year ago

robertmylne commented 1 year ago

Using Laravel for this, but it uses Inflector under the hood.

> Str::plural('addendum')
= "addendums" // should be `addenda`

> Str::singular('addenda')                                                                                                                                                                                 
= "addenda" // should be `addendum`
malarzm commented 1 year ago

addendums is correct pluralization according to https://en.wiktionary.org/wiki/addendum

garrettw commented 1 year ago

@malarzm Wiktionary lists both as valid. This is one of those weird cases where the true Latin form has largely fallen out of favor, so -ums may indeed be the preferred plural form now. (Another weird case like this is "data" -- where we don't commonly use the true Latin singular form "datum" anymore.)

robertmylne commented 1 year ago

Well you would have to go with the one that people use the most in the real world, which is addenda, for most people addendums seems incorrect.

Google graphs the usage of words in literature, and you can see the comparison here: https://books.google.com/ngrams/graph?content=addenda%2Caddendums&year_start=1800&year_end=2019&corpus=en-2019&smoothing=3

Screenshot 2023-11-01 121544