{"id":13394407,"url":"https://github.com/retextjs/retext-simplify","last_synced_at":"2025-08-17T10:36:12.515Z","repository":{"id":40005159,"uuid":"49679355","full_name":"retextjs/retext-simplify","owner":"retextjs","description":"plugin to check phrases for simpler alternatives","archived":false,"fork":false,"pushed_at":"2023-09-10T10:52:19.000Z","size":143,"stargazers_count":92,"open_issues_count":0,"forks_count":13,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-09-21T21:24:09.112Z","etag":null,"topics":["natural-language","retext","retext-plugin","simplify"],"latest_commit_sha":null,"homepage":"https://unifiedjs.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/retextjs.png","metadata":{"funding":{"github":"unifiedjs","open_collective":"unified"},"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-01-14T22:26:13.000Z","updated_at":"2024-07-02T01:39:20.000Z","dependencies_parsed_at":"2024-01-18T18:10:06.914Z","dependency_job_id":"242845a5-8a69-41f6-a0dc-f387bd161c86","html_url":"https://github.com/retextjs/retext-simplify","commit_stats":{"total_commits":97,"total_committers":8,"mean_commits":12.125,"dds":0.08247422680412375,"last_synced_commit":"4a01b7aa51211496b52122d59633621ae4fbeb36"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retextjs%2Fretext-simplify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retextjs%2Fretext-simplify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retextjs%2Fretext-simplify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retextjs%2Fretext-simplify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/retextjs","download_url":"https://codeload.github.com/retextjs/retext-simplify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248018061,"owners_count":21034048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["natural-language","retext","retext-plugin","simplify"],"created_at":"2024-07-30T17:01:18.400Z","updated_at":"2025-04-09T10:09:56.379Z","avatar_url":"https://github.com/retextjs.png","language":"JavaScript","funding_links":["https://github.com/sponsors/unifiedjs","https://opencollective.com/unified"],"categories":["JavaScript","Plugins"],"sub_categories":[],"readme":"# retext-simplify\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 simpler alternatives.\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(retextSimplify[, options])`](#unifieduseretextsimplify-options)\n    *   [`Options`](#options)\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 simpler\nalternatives.\nFor example it suggest `use` instead of `utilize`.\n\n## When should I use this?\n\nYou can opt-into this plugin when you’re dealing with content that might contain\noverlong words or phrases, and have authors that can fix that content.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install retext-simplify\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport retextSimplify from 'https://esm.sh/retext-simplify@8'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n\u003cscript type=\"module\"\u003e\n  import retextSimplify from 'https://esm.sh/retext-simplify@8?bundle'\n\u003c/script\u003e\n```\n\n## Use\n\nSay our document `example.txt` contains:\n\n```txt\nYou can utilize a shorter word.\nBe advised, don’t do this.\nThat’s the appropriate thing to do.\n```\n\n…and our module `example.js` looks as follows:\n\n```js\nimport {retext} from 'retext'\nimport retextSimplify from 'retext-simplify'\nimport {read} from 'to-vfile'\nimport {reporter} from 'vfile-reporter'\n\nconst file = await retext()\n  .use(retextSimplify)\n  .process(await read('example.txt'))\n\nconsole.error(reporter(file))\n```\n\n…now running `node example.js` yields:\n\n```txt\nexample.txt\n1:9-1:16  warning Unexpected `utilize`, use `use` instead                               utilize     retext-simplify\n2:1-2:11  warning Unexpected `Be advised`, remove it                                    be-advised  retext-simplify\n3:12-3:23 warning Unexpected `appropriate`, remove it, or use `proper`, `right` instead appropriate retext-simplify\n\n⚠ 3 warnings\n```\n\n## API\n\nThis package exports no identifiers.\nThe default export is [`retextSimplify`][api-retext-simplify].\n\n### `unified().use(retextSimplify[, options])`\n\nCheck for simpler alternatives.\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\u003cstring\u003e`, optional)\n    — phrases *not* to warn about\n\n## Messages\n\nEach message is emitted as a [`VFileMessage`][vfile-message] on `file`, with\n`source` set to `'retext-simplify'`, `ruleId` to the normalized phrase,\n`actual` to the unexpected phrase, and `expected` to suggestions.\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-simplify@^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-intensify`](https://github.com/retextjs/retext-intensify)\n    — check for weak and mitigating wording\n*   [`retext-passive`](https://github.com/retextjs/retext-passive)\n    — check passive voice\n*   [`retext-profanities`](https://github.com/retextjs/retext-profanities)\n    — check profane and vulgar wording\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\u003c!-- Definitions --\u003e\n\n[build-badge]: https://github.com/retextjs/retext-simplify/workflows/main/badge.svg\n\n[build]: https://github.com/retextjs/retext-simplify/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/retextjs/retext-simplify.svg\n\n[coverage]: https://codecov.io/github/retextjs/retext-simplify\n\n[downloads-badge]: https://img.shields.io/npm/dm/retext-simplify.svg\n\n[downloads]: https://www.npmjs.com/package/retext-simplify\n\n[size-badge]: https://img.shields.io/bundlejs/size/retext-simplify\n\n[size]: https://bundlejs.com/?q=retext-simplify\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[api-retext-simplify]: #unifieduseretextsimplify-options\n\n[api-options]: #options\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretextjs%2Fretext-simplify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fretextjs%2Fretext-simplify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretextjs%2Fretext-simplify/lists"}