{"name":"irregular-plurals","version":"3.4.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.4.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":"4be22a18af7c428e6480163d0de555e343b876db","tarball":"http://registry-npm.ywwl.com/irregular-plurals/download/irregular-plurals-3.4.0.tgz","fileCount":6,"integrity":"sha512-YXxECO/W6N9aMBVKMKKZ8TXESgq7EFrp3emCGGUcrYY1cgJIeZjoB75MTu8qi+NAKntS9NwPU8VdcQ3r6E6aWQ==","signatures":[{"sig":"MEUCIQCEH2XGyleaBtm2L140Ht6XakeYxaXPcFEOs6DcWvU+lwIgfZTS3szS2ucrVsByF/zubz2BzhzkhRPZegJ+httsWUM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6434,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyfXXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLEw/8DPwMgfEyeTyuMZekznhx39+H/nuHDSWV3OM7igzFuw74VG/c\r\nAtQsovJ/WremAyKxVCRI//4yTYE0DYRT01ohXMvdSGxOklLlIUh4SxqlxiCt\r\nvuvTd2aVdWdLDPELoy02WJHmfsZOzoWGXNYdl/qHsZRzoazdwrvDJPukJA5r\r\nmT4XJm1s8m6Gfvpo6A8+ALf3LSQmdHEdGUaRmJkmj6mJ2FzP6KjxY0dUPnMe\r\n0if5YvScORIT6I5UqrbvtGU7bkwpWi9eor/V//Z9o4AhdrJ3xfy7+RHqaafs\r\ngpcpICCwFo6nicZPckgmaXwQz8IStkdzx9hJAAOeD1dMlDOrLccrwgnSScdO\r\nEFmtJkUslze4Z6+xZUnsAHIJLpGUVevHXEp7v7dcHRfI7rxbehKFh5Omc5SW\r\nXjCPZJFiHaW+UGLTIR9tnBXNtzB1ahFqfge17TmdYTt5IwR0x24foidqwdeN\r\nUNPxWxXeVdUjIDXQZAzxYfV3v19io9FgWZsMMwty6m/Jq4lCmu/2L46J+12S\r\nf8XiNC1s4uP6is9JB8muFCSuTgp0SByA7NIQalhkeM4n08YlsI7G9cjDfq5I\r\nJTQ3hjX9qzDZfIe2zb4HQbGMcrNnvXd1AwIhWWido5zoACBdRV2vmjDtqTts\r\nIY3qnKX67bateb2+2h31ZTEJPVcORB77JdE=\r\n=BYK7\r\n-----END PGP SIGNATURE-----\r\n","size":2908,"noattachment":false,"key":"/irregular-plurals/-/irregular-plurals-3.4.0.tgz"},"types":"./index.d.ts","engines":{"node":">=8"},"gitHead":"ac3af23654d725fe6fc5b8d925b26f9b1e7f3242","scripts":{"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":"19.4.0","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.24.0","ava":"^1.4.1","tsd":"^0.7.2"},"_npmOperationalInternal":{"tmp":"tmp/irregular-plurals_3.4.0_1674180054833_0.11437699963381798","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":1674180054969,"_cnpm_publish_time":1674180054969,"dist-tags":{"latest":"4.2.0"}}