{"name":"irregular-plurals","version":"3.5.0","keywords":["word","words","list","map","hash","json","irregular","plural","plurals","noun","nouns"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"irregular-plurals@3.5.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"},"xo":{"rules":{"import/extensions":"off"}},"tsd":{"compilerOptions":{"resolveJsonModule":true}},"dist":{"shasum":"0835e6639aa8425bdc8b0d33d0dc4e89d9c01d2b","tarball":"http://registry-npm.ywwl.com/irregular-plurals/download/irregular-plurals-3.5.0.tgz","fileCount":6,"integrity":"sha512-1ANGLZ+Nkv1ptFb2pa8oG8Lem4krflKuX/gINiHJHjJUKaJHk/SXk5x6K3J+39/p0h1RQ2saROclJJ+QLvETCQ==","signatures":[{"sig":"MEUCIQCSng+VHvNEQ1AGPk/bzxxTPxr7JRckFryjmFsnbEdbIAIgfvgGfwgsXona+vjdCdBX4/R3uQUuKN1qHSGHBaSs5y0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDD7JACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpZPxAAoXyZ22BedQWb6zGf0UbWmAEBaqKKL7VT/SFELbWKNaqFa/gU\r\ncdrhwKzI14/XrtEu0uaBoeNeivABNlSOLPpHtVbboxd6TxvMxpzHIE/zT5vZ\r\nAoey1SfcCWqdZFznz0HIA/OeTy8NXL4u04DQrIzSeb8wi/yTq6/rIw3duRpJ\r\nRB3xhhaC8nCIWAjB6lg9FzC7AdlYaZDginY2n0pQog49gQ4n58d781/xqc3g\r\nUye2QFE8pR+VBx0dTfbWAUrO9w331ebiNP9pSdOy2FG9uuGpa5n0vSR5sR+j\r\nFUc5H1Up1sAT+JenrV8Ma5b7l9h/DcytI9Ti9VH6otlGd/YN4c1ObY836BrO\r\nr1vJGYmbRW9ZWm3KGBPPn9d+PWlDdyq3EGNDm/ZSr1kY9IgpfAwo6+Nr03XG\r\n9CmGUYmq0tmKjh1i22rfNs6AGhABRJr64ZjztXYOE9g2UqNLDo1Y0dzGUC06\r\nlMzvnQphYpwv6RXwOVURf1p4drz4hoa54sMs0Hyi852sLC2e4MSlVss5NZTL\r\nI937jGXZ2aAdz5HTgK4GfOw+n83KDB4Q/g/cKsTMORsBJ73veXdvL6YLiUMV\r\nhnKywgMlG4ZtIS/MAdBh0WiiIYcUvfAyMOF4gChCKHsTtk/JhW0/adcS9Pkm\r\nE7xZEmVKsX/dhJw6w1fhZvq+3GTnpEE2RxM=\r\n=fmFo\r\n-----END PGP SIGNATURE-----\r\n","size":3025,"noattachment":false,"key":"/irregular-plurals/-/irregular-plurals-3.5.0.tgz"},"types":"./index.d.ts","engines":{"node":">=8"},"gitHead":"afd80fa5ff103754ea5ad7b40b38d6ac8646b3b0","scripts":{"test":"ava","//test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/irregular-plurals.git","type":"git"},"_npmVersion":"9.2.0","description":"Map of nouns to their irregular plural form","directories":{},"_nodeVersion":"18.14.2","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.24.0","ava":"^1.4.1","tsd":"^0.7.2"},"_npmOperationalInternal":{"tmp":"tmp/irregular-plurals_3.5.0_1678524105449_0.5414913392663763","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":1678524105628,"_cnpm_publish_time":1678524105628,"dist-tags":{"latest":"4.2.0"}}