{"name":"retext-equality","version":"4.2.0","description":"retext plugin to warn about possible insensitive, inconsiderate language","license":"MIT","keywords":["unified","retext","plugin","equal","race","religion","sex","orientation","identity","gender","sensitive","insensitive","neutral","writing","language","english"],"repository":{"type":"git","url":"git+https://github.com/retextjs/retext-equality.git"},"bugs":{"url":"https://github.com/retextjs/retext-equality/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Shinnosuke Watanabe","email":"snnskwtnb@gmail.com"},{"name":"Elliott Hauser","email":"eah13@mac.com"},{"name":"Ryan Tucker","email":"git@ryantucker.us"},{"name":"David Simons","email":"david.simons@softwire.com"},{"name":"rugk","email":"rugk@posteo.de"},{"name":"Eli Feasley","email":"eliana@khanacademy.org"},{"name":"Eli Sadoff","email":"esadoff@ardiangroup.com"},{"name":"Flip Stewart","email":"flipstewart@me.com"},{"name":"Catherine Etter","email":"cetter.catherine@gmail.com"},{"name":"Conlin Durbin","email":"conlindurbin@protonmail.com"},{"name":"Jen Weber","email":"j@jenweber.me"},{"name":"Matsuko","email":"info@matsuko.ca"},{"name":"Saksham Gupta","email":"saksham.gupta2016@vitstudent.ac.in"},{"name":"Aaron Miller","email":"me@aaron-miller.me"},{"name":"Alicia Gansley","email":"aegansley@gmail.com"},{"name":"Anna K","email":"anna.k.kautto@gmail.com"},{"name":"Bryce Kahle","email":"bryce@brycekahle.com"}],"dependencies":{"lodash.difference":"^4.5.0","lodash.intersection":"^4.4.0","nlcst-normalize":"^2.0.0","nlcst-search":"^1.1.1","nlcst-to-string":"^2.0.0","object-keys":"^1.0.7","quotation":"^1.0.1","unist-util-is":"^4.0.0","unist-util-visit":"^2.0.0"},"devDependencies":{"array-duplicated":"^2.0.0","array-unique":"^0.3.0","bail":"^1.0.1","browserify":"^16.0.0","chalk":"^2.4.2","is-hidden":"^1.1.2","js-yaml":"^3.6.1","mdast-util-heading-range":"^2.0.1","not":"^0.1.0","nyc":"^14.0.0","prettier":"^1.17.1","remark-cli":"^7.0.0","remark-lint-table-pipe-alignment":"^1.0.0","remark-preset-wooorm":"^6.0.0","retext":"^7.0.0","tape":"^4.0.0","tinyify":"^2.4.3","unist-builder":"^1.0.2","vfile-sort":"^2.0.0","xo":"^0.25.0"},"scripts":{"generate":"node script/generate.js","format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify . -s retextEquality > retext-equality.js","build-mangle":"browserify . -s retextEquality -p tinyify > retext-equality.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run generate && npm run format && npm run build && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"unicorn/prefer-includes":"off","guard-for-in":"off","max-params":"off"},"ignores":["retext-equality.js"]},"remarkConfig":{"settings":{"paddedTable":false},"plugins":["preset-wooorm",["remark-lint-table-pipe-alignment",false],"./script/build-table"]},"gitHead":"af417b4b193a60f370b4cd8c89bdf0392ce3796b","homepage":"https://github.com/retextjs/retext-equality#readme","_id":"retext-equality@4.2.0","_nodeVersion":"12.11.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-7ie79FKs/unD01g3yciMqmKBInECngoCi1keH3HHhylepZ6IqQddzPPxSSHAnhGTCp4VD1WvlzNtet7Gsjl/Ow==","shasum":"89ad472444f74e54656eada33ab7748fcbe7a2ef","tarball":"http://registry-npm.ywwl.com/retext-equality/download/retext-equality-4.2.0.tgz","fileCount":7,"unpackedSize":143514,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdl1tDCRA9TVsSAnZWagAAF38P/1k3p51UL0u/uQrxOGJl\nuCmtSwLBAWpjzNUQ4mVgMS4Zk9Y+Qpsi/D0NqguQBJoTNcn26UN5uE5lfuK6\nq1EE1CV5Mtuy/tXl+hrpyjpdlm3A4tzKwQ8xcuKWwM9eSeR4323OqKEuiLxK\n08rWN3SbWnXluYnxvZn611r9KjC+3mKJpWtm9LM7xHLrJCJjYmUy6DI/he6D\n3M3/RzEyAydiR9WlbflZ7JBErLFzt60pTnd8LHclfuAjTiuef5DregESgRuC\nLOx9uTYrbGGRJFSBYZQnX9lnoP/q5LgUugLbzvYXBsB1oSvGykGDvvHBwhq4\n0v54wPvNJT1vH2fkfh8M74DXVCGNLaYQ0MGA4xZzK07fYjwVfP0+EtMOOtYx\nQXvje6khV64ozvRAHNs38KW6ETANRfsdzucjN3tSkfXMQqNYiFnXoeKjopC3\n0Txs3h60nm7LnWOWWC1D4jqr3Vlu/oNOb6yJqQjS8naqs8EZCrEBYFzDWyVI\nOz/3M7MQEWoT8aa87SqmkIaKQMsYcdIbiR3GhGgLr/TNYRYjjxEOj1vkGOjK\nzvYYWQKO9qLjXVEDkM3ubiDoh+rxuTGtUFZL6vb5GyAoRD7Kk/2DcxB7GjcW\nJODPWqai4PUD7uWaICGSNYudf30wU3XICzf3SKnz9XdD6hyWDeD1WnNP8OEy\nY3XJ\r\n=/Dod\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICGgjo+eRdG+wDxqvgf2UNq9y6zfoSzEvswAs2vS7uUeAiEAxwmkm/tHBNaoba4cOcgZYjCMEXXhzVQPFh+neGSVrzk="}],"size":21875,"noattachment":false,"key":"/retext-equality/-/retext-equality-4.2.0.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/retext-equality_4.2.0_1570200387058_0.9747936977873302"},"_hasShrinkwrap":false,"readme":"# retext-equality\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n[![Sponsors][sponsors-badge]][collective]\n[![Backers][backers-badge]][collective]\n[![Chat][chat-badge]][chat]\n\n**[retext][]** plugin to check for possible insensitive, inconsiderate language.\n\n## Contents\n\n* [What is this?](#what-is-this)\n* [When should I use this?](#when-should-i-use-this)\n* [Install](#install)\n* [Use](#use)\n* [API](#api)\n  * [`unified().use(retextEquality[, options])`](#unifieduseretextequality-options)\n  * [`Options`](#options)\n* [Messages](#messages)\n* [Types](#types)\n* [Compatibility](#compatibility)\n* [Related](#related)\n* [Contributing](#contributing)\n* [License](#license)\n\n## What is this?\n\nThis package is a [unified][] ([retext][]) plugin to check for certain words\nthat could be considered insensitive, or otherwise inconsiderate, in certain\ncontexts.\n\n## When should I use this?\n\nYou can opt-into this plugin when you’re dealing with your own text and want to\ncheck for potential mistakes.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install retext-equality\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport retextEquality from 'https://esm.sh/retext-equality@7'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import retextEquality from 'https://esm.sh/retext-equality@7?bundle'\n</script>\n```\n\n## Use\n\nSay our document `example.txt` contains:\n\n```txt\nNow that the child elements are floated, obviously the parent element will collapse.\n```\n\n…and our module `example.js` contains:\n\n```js\nimport retextEnglish from 'retext-english'\nimport retextEquality from 'retext-equality'\nimport retextStringify from 'retext-stringify'\nimport {read} from 'to-vfile'\nimport {unified} from 'unified'\nimport {reporter} from 'vfile-reporter'\n\nconst file = await unified()\n  .use(retextEnglish)\n  .use(retextEquality)\n  .use(retextStringify)\n  .process(await read('example.txt'))\n\nconsole.error(reporter(file))\n```\n\n…then running `node example.js` yields:\n\n```txt\nexample.txt\n1:42-1:51 warning Unexpected potentially insensitive use of `obviously`, try not to use it obvious retext-equality\n\n⚠ 1 warning\n```\n\n## API\n\nThis package exports no identifiers.\nThe default export is [`retextEquality`][api-retext-equality].\n\n### `unified().use(retextEquality[, options])`\n\nCheck potentially insensitive language.\n\n###### Parameters\n\n* `options` ([`Options`][api-options], optional)\n  — configuration\n\n###### Returns\n\nTransform ([`Transformer`][unified-transformer]).\n\n### `Options`\n\nConfiguration (TypeScript type).\n\n###### Fields\n\n* `ignore` (`Array<string>`, optional)\n  — phrases *not* to warn about\n* `binary` (`boolean`, default: `false`)\n  — whether to allow “he or she”, “garbagemen and garbagewomen”, and similar\n\n## Messages\n\nSee [`rules.md`][file-rules] for a list of rules and how rules work.\n\nEach message is emitted as a [`VFileMessage`][vfile-message] with `source` set\nto `'retext-equality'`, `ruleId` to an `id` from [`rules.md`][file-rules],\n`actual` to the not ok phrase, and `expected` to suggested phrases.\nSome messages also contain a `note` with extra info.\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports the additional type [`Options`][api-options].\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with maintained\nversions of Node.js.\n\nWhen we cut a new major release, we drop support for unmaintained versions of\nNode.\nThis means we try to keep the current release line, `retext-equality@^7`,\ncompatible with Node.js 16.\n\n## Related\n\n* [`alex`](https://github.com/get-alex/alex)\n  — Catch insensitive, inconsiderate writing\n* [`retext-passive`](https://github.com/retextjs/retext-passive)\n  — Check passive voice\n* [`retext-profanities`](https://github.com/retextjs/retext-profanities)\n  — Check for profane and vulgar wording\n* [`retext-simplify`](https://github.com/retextjs/retext-simplify)\n  — Check phrases for simpler alternatives\n\n## Contributing\n\nSee [`contributing.md`][contributing] in [`retextjs/.github`][health] for ways\nto get started.\nSee [`support.md`][support] for ways to get help.\n\nThis project has a [code of conduct][coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\nTo create new patterns, add them in the YAML files in the [`data/`][file-data]\ndirectory, and run `npm install` and then `npm test` to build everything.\nPlease see the current patterns for inspiration.\nNew English rules will automatically be added to `rules.md`.\n\nWhen you are happy with the new rule, add a test for it in\n[`test.js`][file-test], and open a pull request.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/retextjs/retext-equality/workflows/main/badge.svg\n\n[build]: https://github.com/retextjs/retext-equality/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/retextjs/retext-equality.svg\n\n[coverage]: https://codecov.io/github/retextjs/retext-equality\n\n[downloads-badge]: https://img.shields.io/npm/dm/retext-equality.svg\n\n[downloads]: https://www.npmjs.com/package/retext-equality\n\n[size-badge]: https://img.shields.io/bundlejs/size/retext-equality\n\n[size]: https://bundlejs.com/?q=retext-equality\n\n[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[collective]: https://opencollective.com/unified\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[chat]: https://github.com/retextjs/retext/discussions\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esmsh]: https://esm.sh\n\n[typescript]: https://www.typescriptlang.org\n\n[health]: https://github.com/retextjs/.github\n\n[contributing]: https://github.com/retextjs/.github/blob/main/contributing.md\n\n[support]: https://github.com/retextjs/.github/blob/main/support.md\n\n[coc]: https://github.com/retextjs/.github/blob/main/code-of-conduct.md\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[retext]: https://github.com/retextjs/retext\n\n[unified]: https://github.com/unifiedjs/unified\n\n[unified-transformer]: https://github.com/unifiedjs/unified#transformer\n\n[vfile-message]: https://github.com/vfile/vfile-message\n\n[file-rules]: rules.md\n\n[file-data]: data/\n\n[file-test]: test.js\n\n[api-options]: #options\n\n[api-retext-equality]: #unifieduseretextequality-options\n","publish_time":1570200387250,"_cnpm_publish_time":1570200387250,"dist-tags":{"latest":"7.1.0"}}