plurals / pluralize

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

singular of 'cookies' is not 'cooky' #192

Open scolobey opened 2 years ago

scolobey commented 2 years ago

The current git version looks to have repaired this. There are a number of singularization rules that I see in git that are not on version ^8.0.0 as pulled from NPM yesterday.

Line 375 is the line that I believe repairs my cookie issue: [/(dg|ss|ois|lk|ok|wn|mb|th|ch|ec|oal|is|ck|ix|sser|ts|wb)ies$/i, '$1ie'],

Looking at history, the relevant update is from 8/27 2019. https://github.com/plurals/pluralize/commit/abb399111aedd1d62dd418d7e0217d85f5bf22c9

Probably a silly question, but how do I get at the npm package with the most up to date version?

scolobey commented 2 years ago

Okay, I answered my own question.

It is in fact pretty easy to npm install a repo straight from github, so I just uninstalled the npm version and then installed like... npm i https://github.com/plurals/pluralize.git

I would be curious to know why this version https://www.npmjs.com/package/pluralize is so out of date. Am I weird for relying on the npm releases? Should I be trying to install all of my packages from the source like this?

avin-kavish commented 2 years ago

Pinging @blakeembrey