{"name":"irregular-plurals","version":"3.4.1","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.1","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":"1ef8a7200db56ee79323c0b26e11620c553fd1a5","tarball":"http://registry-npm.ywwl.com/irregular-plurals/download/irregular-plurals-3.4.1.tgz","fileCount":6,"integrity":"sha512-JR7VL+1Kd9z79bE+2uSgifpzrTwLWmTvyeUewhxZCHVtpPImAsLk4adfRxg86uvdsJ8etYYrpzN7vRT30gGnOA==","signatures":[{"sig":"MEUCIA+/gJwmxbQgWgfkufzNKgIItA6eaBDFVZ79q6KaJVHgAiEAqOQmXM0N03z+aEfFbDlMVkZi5RuvLgxava3m6zT+k/Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6358,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/Z9FACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZlBAAjWaYjk0jeJlt3E8rnX7hKnOtdLBlRGFiNU8+K8IXhk86zykh\r\n8MsGUroaQKk7u/Xi6DcEzvkjlR3oS3p2+IJT0MQa3pc7g6XE48NBA/BDItHM\r\nXF46BZpUR9y+RvhrOwWUsSJP3n6Lm4UUJx4wHoX3By2wRWxDaFo+mjfxYzd9\r\nv6CmfWNUD/pLblL5bJVBIzBZbfIEuyzC80iNxbDjW/JQjMTp8G6obADrXFEO\r\n7hNjOsleCA72PYKjQqkrHnDz4R+Q94lBQoD7bhJMamqN4wQ1MRn3poqA1O2v\r\nQJudazNcgTmpNs/FVrOnk4n+Z9fHcN9ueDJ//xjLcunid7jN5+fGTyxM8RbQ\r\njdWOfk75+oMx5ZSPWhvnUPVKvrKcY5hhStfidkgFjWYrQT79cspFY3eEjiOo\r\n4GzWSGQAKxCbipvU0xKlmiPW/jC7iOFmT4E0nroT/9UHTFrQwkVM9JMkt4yY\r\nJ75snka3BGZi9MIxvN6OMPrFuuecFTKSYQ7SXcumkBu6o79OaTolYSuSjlke\r\npfCmbInU76kJjRwo5W4N+trM07em5Q3ugj7QHQ92yBGrrpOGpMlBMjW4NhDl\r\nK2hIk/3T2wqoKWHh2p8xqdT6arICj60zbS67dBtKHDHtu8H3Htqvpw2RwqJV\r\nVy3wlbOrKuHQFZolQ9I515FtWGB2nL1zg8g=\r\n=6iAj\r\n-----END PGP SIGNATURE-----\r\n","size":2847,"noattachment":false,"key":"/irregular-plurals/-/irregular-plurals-3.4.1.tgz"},"types":"./index.d.ts","engines":{"node":">=8"},"gitHead":"79e338880bd74d864d11f9bc3bcfb7c5f9212243","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":"16.16.0","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.24.0","ava":"^1.4.1","tsd":"^0.7.2"},"_npmOperationalInternal":{"tmp":"tmp/irregular-plurals_3.4.1_1677565765194_0.5617919860856277","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":1677565765349,"_cnpm_publish_time":1677565765349,"dist-tags":{"latest":"4.2.0"}}