{"name":"irregular-plurals","version":"4.0.0","keywords":["word","words","list","map","hash","json","irregular","plural","plurals","noun","nouns"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"irregular-plurals@4.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/irregular-plurals#readme","bugs":{"url":"https://github.com/sindresorhus/irregular-plurals/issues"},"dist":{"shasum":"457bbe2ee08a7ef192b716bc5e731ab4e188a333","tarball":"http://registry-npm.ywwl.com/irregular-plurals/download/irregular-plurals-4.0.0.tgz","fileCount":6,"integrity":"sha512-Q2He7RhuoPqp0LxgFTawRMcTrteruZwJgBrBYIy4cBMnBfLvogahd8oNbG3JcSCE1UH4E7o3rfKIC7COXuiPYA==","signatures":[{"sig":"MEUCIQCPb+YtfIyQbMx1Gtlw4O0FgwZKFFC0tjMp/7g0YYnaNAIgctipx6YURsM1HcWrGM9eJf2yuCiOztzApCU0TMstTLc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7261,"size":3096,"noattachment":false,"key":"/irregular-plurals/-/irregular-plurals-4.0.0.tgz"},"type":"module","types":"./index.d.ts","engines":{"node":">=18.20"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"fcba7f5ee527b626d962c9e59c21a87d52cc5b32","scripts":{"test":"ava && tsc --noEmit index.d.ts","//test":"xo && ava && tsc --noEmit index.d.ts"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/irregular-plurals.git","type":"git"},"_npmVersion":"10.6.0","description":"Map of nouns to their irregular plural form","directories":{},"sideEffects":false,"_nodeVersion":"18.20.2","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.58.0","ava":"^6.1.2","tsd":"^0.31.0"},"_npmOperationalInternal":{"tmp":"tmp/irregular-plurals_4.0.0_1714480452899_0.4744779371467691","host":"s3://npm-registry-packages"},"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":1714480453039,"_cnpm_publish_time":1714480453039,"dist-tags":{"latest":"4.2.0"}}