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.
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.