{"name":"retext-equality","version":"2.2.1","description":"Warn about possible insensitive, inconsiderate language with Retext","license":"MIT","keywords":["equal","race","religion","sex","orientation","identity","gender","sensitive","insensitive","neutral","writing","language","english","retext"],"dependencies":{"array-differ":"^1.0.0","array-intersection":"^0.1.2","nlcst-normalize":"^1.1.0","nlcst-search":"^1.1.1","nlcst-to-string":"^1.0.0","object-keys":"^1.0.7","quotation":"^1.0.1","unist-util-visit":"^1.0.0"},"files":["lib","index.js"],"repository":{"type":"git","url":"git+https://github.com/wooorm/retext-equality.git"},"bugs":{"url":"https://github.com/wooorm/retext-equality/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"devDependencies":{"array-duplicated":"^1.0.1","browserify":"^13.0.0","eslint":"^1.0.0","esmangle":"^1.0.1","istanbul":"^0.4.0","js-yaml":"^3.3.1","jscs":"^2.0.0","jscs-jsdoc":"^1.0.0","remark":"^3.0.0","remark-comment-config":"^2.0.0","remark-github":"^4.0.0","remark-lint":"^2.0.0","remark-slug":"^4.0.0","remark-validate-links":"^2.0.0","retext":"^1.0.0","tap":"^5.0.0","vfile-sort":"^1.0.0"},"scripts":{"build-bundle":"browserify index.js --no-builtins -s retextEquality > retext-equality.js","build-mangle":"esmangle retext-equality.js > retext-equality.min.js","build-extract":"node script/extract.js","build-md":"remark . --quiet --frail","build":"npm run build-md && npm run build-extract && npm run build-bundle && npm run build-mangle","lint-api":"eslint .","lint-style":"jscs --reporter inline .","lint":"npm run lint-api && npm run lint-style","test-api":"node test.js","test-coverage":"istanbul cover test.js","test":"npm run build && npm run lint && npm run test-coverage"},"gitHead":"75a2dcf8698dc5235c032d8c819edffd31243e40","homepage":"https://github.com/wooorm/retext-equality#readme","_id":"retext-equality@2.2.1","_shasum":"a6869f4f200381cd1c40c94d37a0a0fb29e57ec2","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"a6869f4f200381cd1c40c94d37a0a0fb29e57ec2","tarball":"http://registry-npm.ywwl.com/retext-equality/download/retext-equality-2.2.1.tgz","integrity":"sha512-fKviX41tk0s665X/QpA44Miof5my2jqNi7nBJdkE5FndZRmBvSrIrAhfvvMRJ5EkmPmatrtN9/lDwJt8Zj4Ekw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCHzky8rHZW4Hv7pAmpnH2FRJeKtGAWxOxdvL3YJb6Jk4CIBxilSi7zXfiB1+63eyonqBgb/n7xnS5QEWkRiIWIBUX"}],"size":17202,"noattachment":false,"key":"/retext-equality/-/retext-equality-2.2.1.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/retext-equality-2.2.1.tgz_1454585674106_0.00006520119495689869"},"directories":{},"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":1454585676843,"_cnpm_publish_time":1454585676843,"dist-tags":{"latest":"7.1.0"}}