dreamerslab / node.inflection

A port of inflection-js to node.js module
MIT License
554 stars 46 forks source link

Wrong pluralization of 'grammar' #63

Closed TimAstier closed 3 years ago

TimAstier commented 7 years ago
var inflection = require('inflection');
console.log(inflection.pluralize('grammar'));
// "grammar" instead of expected "grammars"

I've seen that this package is based on wiktionary. The grammar page does mention: grammar (countable and uncountable, plural grammars)

I noticed this when defining a 'grammar' model with the ORM Sequelize which has inflection as a dependency. Also, it seems that the issue comes from this package itself and not from rails.