{"name":"retext-profanities","version":"7.2.1","description":"retext plugin to check for profane and vulgar wording","license":"MIT","keywords":["unified","retext","retext-plugin","plugin","profane","profanity","cuss","obscene","vulgar","profanities"],"repository":{"type":"git","url":"git+https://github.com/retextjs/retext-profanities.git"},"bugs":{"url":"https://github.com/retextjs/retext-profanities/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":"Sylvan Swierkosz","email":"sswierkosz@gmail.com"},{"name":"Mathieu Jolivet"},{"name":"Otacilio Saraiva Maia Neto","email":"otacilio.n97@gmail.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/nlcst":"^1.0.0","cuss":"^2.0.0","nlcst-search":"^3.0.0","nlcst-to-string":"^3.0.0","pluralize":"^8.0.0","quotation":"^2.0.0","unified":"^10.0.0","unist-util-position":"^4.0.0"},"devDependencies":{"@types/mdast":"^3.0.0","@types/pluralize":"^0.0.29","@types/tape":"^4.0.0","c8":"^7.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","xo":"^0.49.0"},"scripts":{"build":"rimraf \"*.d.ts\" \"script/**/*.d.ts\" && tsc && type-coverage","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 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",["remark-lint-table-pipe-alignment",false],["gfm",{"tablePipeAlign":false}],"./script/build-table.js"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"4d2c13e00e184cfce3a316158615e8422f95b8c3","homepage":"https://github.com/retextjs/retext-profanities#readme","_id":"retext-profanities@7.2.1","_nodeVersion":"18.2.0","_npmVersion":"8.9.0","dist":{"integrity":"sha512-VJ+opSjhmFKJnHvvqpM6/5Jxiizys9teNmQpdQgZTeUTddAGALq418/hjyvCvI1c2IGgya8pVA5pZ1b8+RMfyQ==","shasum":"8c98ab1766d0f547203a715aa76f390b6e08a065","tarball":"http://registry-npm.ywwl.com/retext-profanities/download/retext-profanities-7.2.1.tgz","fileCount":19,"unpackedSize":17179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNfyTJbx52JEl17EPhHAuTLsRtSYu8Ob7xaPpzU54X8AIhAIhmY2bCIZKPAhEYXdwOXB02VrTcFBr/+LvZ6LX76rG+"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijfcRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqwYw//a82gEZK9WQDDZr0Sa2lFxlm+D6+va2+mNFCdkEen08/HoJ1k\r\n+kVq/C3d6/gm1KT7MBl0sQtF3F/qhKe6nW3IdGxipZjga69TM26qaLgd3gIR\r\nXmqxN3mDOeZv/Kq9ZZjgHNAbRFqkXBj2CQdRO/H2GOHBM0rxFIieNBYOdS+d\r\nk9+B1LaVQOvNUeI+xneznsgG9ia38EavZ1u/2yKFrQRssYWD2KFLI/mmOryQ\r\nj/elb13yr4ssL0Ykyn7B8Lvoww9od7bFNTB8D4Aod8N3KK5UjLW5aGzttIF9\r\nF2kcSYSpUhLd/OSxU5HV28ZP2APJwyFlNHtxiXhJKJvDoep7oa3hEzX+dJgO\r\nnrVfo9qGzTNwViLLTq0b7U7/wn+88hXp9FK+q4I7dJt7TspTBUMzpfINXxe0\r\niMLMDYmJ0Sm4nKH4/pSAnTNi/DKbyViGrwJLv9B/2B2CJ2W18oyQObc44QVr\r\ncfWhFOTbZE41HK3zzGVwwAXHuP5gLRLuycdvy57vBnYI+TpbQZJZCyJ1Z8VP\r\n92Al7+XNYC35YA1NiiJt57PvglrP6CCTi6M0LgV5a/KJrN++NN//M4imUxlJ\r\nlUACvCjAPKBNx9kON5O0cmHABJuq3iOmHn9J/3vbyRvw6Bs3nxWb3uel54eU\r\nN5Vicc44SY/d6D4ui8N3M9OtUQFGkLRlnsA=\r\n=TgrD\r\n-----END PGP SIGNATURE-----\r\n","size":5635,"noattachment":false,"key":"/retext-profanities/-/retext-profanities-7.2.1.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-profanities_7.2.1_1653470992993_0.8962550805471841"},"_hasShrinkwrap":false,"readme":"# retext-profanities\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 potential bad words.\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(retextProfanities[, options])`](#unifieduseretextprofanities-options)\n    *   [`Options`](#options)\n*   [Data](#data)\n*   [Messages](#messages)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package is a [unified][] ([retext][]) plugin to check for possible\n[profane or otherwise vulgar][profanities] wording.\nIt uses [`cuss`][cuss] for sureness.\n\n## When should I use this?\n\nYou can use 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-profanities\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport retextProfanities from 'https://esm.sh/retext-profanities@8'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import retextProfanities from 'https://esm.sh/retext-profanities@8?bundle'\n</script>\n```\n\n## Use\n\nSay our document `example.txt` contains:\n\n```txt\nHe’s pretty set on beating your butt for sheriff.\n```\n\n…and our module `example.js` contains:\n\n```js\nimport retextEnglish from 'retext-english'\nimport retextProfanities from 'retext-profanities'\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(retextProfanities)\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:33-1:37 warning Be careful with `butt`, it’s profane in some cases butt retext-profanities\n\n⚠ 1 warning\n```\n\n## API\n\nThis package has an export map with several entries for plugins in different\nlanguages:\n\n*   `retext-profanities/ar-latn` — Arabic (Latin-script)\n*   `retext-profanities/en` — English\n*   `retext-profanities/es` — Spanish\n*   `retext-profanities/fr` — French\n*   `retext-profanities/it` — Italian\n*   `retext-profanities/pt` — Portuguese\n*   `retext-profanities/pt-pt` — Portuguese (Portugal)\n*   `retext-profanities` — English\n\nEach module exports the plugin [`retextProfanities`][api-retext-profanities] as\nthe default export.\n\n### `unified().use(retextProfanities[, options])`\n\nCheck for potential bad words.\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*   `sureness` (`0`, `1`, or `2`, default: `0`)\n    — minimum *sureness* to warn about, see [`cuss`][cuss]\n\n## Data\n\nSee [`cuss`][cuss].\n\n## Messages\n\nEach message is emitted as a [`VFileMessage`][vfile-message], with `source` set\nto `'retext-profanities'`, `ruleId` to the normalized phrase, `actual` to the\npotential bad word, `expected` to an empty array, and `profanitySeverity` to\nthe `cuss` severity of the phrase.\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-profanities@^8`,\ncompatible with Node.js 16.\n\n## Related\n\n*   [`retext-equality`](https://github.com/retextjs/retext-equality)\n    — check possible insensitive, inconsiderate language\n*   [`retext-passive`](https://github.com/retextjs/retext-passive)\n    — check passive voice\n*   [`retext-simplify`](https://github.com/retextjs/retext-simplify)\n    — check phrases for simpler alternatives\n\n## Contribute\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\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/retextjs/retext-profanities/workflows/main/badge.svg\n\n[build]: https://github.com/retextjs/retext-profanities/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/retextjs/retext-profanities.svg\n\n[coverage]: https://codecov.io/github/retextjs/retext-profanities\n\n[downloads-badge]: https://img.shields.io/npm/dm/retext-profanities.svg\n\n[downloads]: https://www.npmjs.com/package/retext-profanities\n\n[size-badge]: https://img.shields.io/bundlejs/size/retext-profanities\n\n[size]: https://bundlejs.com/?q=retext-profanities\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[cuss]: https://github.com/words/cuss\n\n[profanities]: https://github.com/words/profanities\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[api-retext-profanities]: #unifieduseretextprofanities-options\n\n[api-options]: #options\n","publish_time":1653470993135,"_cnpm_publish_time":1653470993135,"dist-tags":{"latest":"8.0.0"}}