{"name":"irregular-plurals","version":"4.2.0","description":"Map of nouns to their irregular plural form","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/irregular-plurals.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18.20"},"scripts":{"//test":"xo && ava && tsc --noEmit index.d.ts","test":"ava && tsc --noEmit index.d.ts"},"keywords":["word","words","list","map","hash","json","irregular","plural","plurals","noun","nouns"],"devDependencies":{"ava":"^6.1.2","tsd":"^0.31.0","xo":"^0.58.0"},"gitHead":"5800d46249fb15f739f0ac19006f840ef41acb46","types":"./index.d.ts","_id":"irregular-plurals@4.2.0","bugs":{"url":"https://github.com/sindresorhus/irregular-plurals/issues"},"homepage":"https://github.com/sindresorhus/irregular-plurals#readme","_nodeVersion":"20.19.5","_npmVersion":"11.6.1","dist":{"integrity":"sha512-bW9UXHL7bnUcNtTo+9ccSngbxc+V40H32IgvdVin0Xs8gbo+AVYD5g/72ce/54Kjfhq66vcZr8H8TKEvsifeOw==","shasum":"f8dd3cc85bdba2d61069c6ffcb37ac6739eea0d7","tarball":"http://registry-npm.ywwl.com/irregular-plurals/download/irregular-plurals-4.2.0.tgz","fileCount":6,"unpackedSize":13046,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIB9v+30a4baGlKL+liR3CnD+lkpu9K5LB+sHc4T6mcy0AiEA6MuxeAs1xBwVckJ3p08Y6XPVJGtPkRqJN3g24Yv+mtg="}],"size":4761,"noattachment":false,"key":"/irregular-plurals/-/irregular-plurals-4.2.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/irregular-plurals_4.2.0_1762075092261_0.8777550906011566"},"_hasShrinkwrap":false,"readme":"# irregular-plurals\n\n> Map of nouns to their irregular plural form\n\n> An irregular plural in this library is defined as a noun that cannot be made plural by applying these rules:\n> - If the noun ends in an \"s\", \"x\", \"z\", \"ch\" or \"sh\", add \"es\"\n> - If the noun ends in a \"y\" and is preceded by a consonant, drop the \"y\" and add \"ies\"\n> - If the noun ends in a \"y\" and is preceded by a vowel, add \"s\"\n\nThe list is just a [JSON file](irregular-plurals.json) and can be used anywhere.\n\n## Install\n\n```sh\nnpm install irregular-plurals\n```\n\n## Usage\n\n```js\nimport irregularPlurals from 'irregular-plurals';\n\nconsole.log(irregularPlurals.get('cactus'));\n//=> 'cacti'\n\nconsole.log(irregularPlurals);\n/*\nMap {\n\t[addendum, 'addenda'],\n\t[alga, 'algae'],\n\t…\n}\n*/\n```\n\n## Related\n\n- [plur](https://github.com/sindresorhus/plur) - Pluralize a word\n","publish_time":1762075092452,"_cnpm_publish_time":1762075092452,"dist-tags":{"latest":"4.2.0"}}