plurals / pluralize

Pluralize or singularize any word based on a count
MIT License
2.14k stars 180 forks source link

Plural of "mosquito" is "mosquitoes" #165

Open morbus opened 3 years ago

morbus commented 3 years ago
# returns nothing
console.log(pluralize.singular("mosquitoes"))
matievisthekat commented 3 years ago

This bug does not appear for me

image

Node: v14.15.3 Pluralize: v8.0.0

morbus commented 3 years ago

"mosquitoe" is also incorrect.

morbus commented 3 years ago

I can confirm @MatievisTheKat's output, though I'm not sure why it was different in my original report - let's just consider that PEBCAK (as the original code that prompted this issue no longer exists). I can also confirm that pluralizing goes the wrong way too:

var pluralize = require('pluralize')
console.log(pluralize.singular('mosquitoes'))
console.log(pluralize.plural('mosquito'))

Outputs:

mosquitoe
mosquitos

When it should output:

mosquito
mosquitoes