{"name":"retext-equality","version":"6.3.0","description":"retext plugin to warn about possible insensitive, inconsiderate language","license":"MIT","keywords":["unified","retext","retext-plugin","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"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"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"},{"name":"Ben Hall","email":"github@benhall.io"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/nlcst":"^1.0.0","@types/unist":"^2.0.6","nlcst-normalize":"^3.0.0","nlcst-search":"^3.0.0","nlcst-to-string":"^3.0.0","quotation":"^2.0.0","unified":"^10.0.0","unist-util-is":"^5.0.0","unist-util-visit":"^4.0.0","vfile":"^5.0.0"},"devDependencies":{"@types/js-yaml":"^4.0.0","@types/mdast":"^3.0.0","@types/tape":"^4.0.0","c8":"^7.0.0","chalk":"^4.0.0","is-hidden":"^2.0.0","js-yaml":"^4.0.0","mdast-util-heading-range":"^3.0.0","prettier":"^2.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","retext":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","unist-builder":"^3.0.0","vfile-sort":"^3.0.0","xo":"^0.45.0"},"scripts":{"build":"rimraf \"{lib,script}/**/*.d.ts\" \"*.d.ts\" && tsc && type-coverage","generate":"node script/generate.js","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test.js","test":"npm run generate && npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm",["gfm",{"tablePipeAlign":false}],["remark-lint-table-pipe-alignment",false],"./script/build-table.js"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"f597d61666edc1ab91dfe5be70a4efe4293bc05a","homepage":"https://github.com/retextjs/retext-equality#readme","_id":"retext-equality@6.3.0","_nodeVersion":"16.9.0","_npmVersion":"7.23.0","dist":{"integrity":"sha512-HmwH06qUlmCNQZZBY7Kkljbqc9isGTVwpm5WedpkfklB2dy+suyUUF1X0Zn3VbcaUlh7DfYrzpaJAtvOkML/eA==","shasum":"27d7469e2106fa6800e77f461ca4b32315ae2886","tarball":"http://registry-npm.ywwl.com/retext-equality/download/retext-equality-6.3.0.tgz","fileCount":11,"unpackedSize":144402,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDHARHIIAZoOpsihiJyfyJ0Fhv/ISZ7cNB5Kv7jFjM/NAiBhJahz09bTJJFu5Dc62F2nsbVTTKSXIQiPo+dkeDS9Sw=="}],"size":24071,"noattachment":false,"key":"/retext-equality/-/retext-equality-6.3.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/retext-equality_6.3.0_1634735068703_0.28441345145129393"},"_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":1634735068836,"_cnpm_publish_time":1634735068836,"dist-tags":{"latest":"7.1.0"}}