{"id":20827009,"url":"https://github.com/retextjs/retext-redundant-acronyms","last_synced_at":"2025-05-07T20:46:21.515Z","repository":{"id":40005203,"uuid":"68509340","full_name":"retextjs/retext-redundant-acronyms","owner":"retextjs","description":"plugin to check for redundant acronyms (such as ATM machine to ATM)","archived":false,"fork":false,"pushed_at":"2023-09-09T10:10:36.000Z","size":122,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-07T20:45:55.037Z","etag":null,"topics":["atm","natural-language","retext","retext-plugin"],"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-18T08:57:41.000Z","updated_at":"2024-02-19T00:21:51.000Z","dependencies_parsed_at":"2024-06-18T20:12:08.407Z","dependency_job_id":null,"html_url":"https://github.com/retextjs/retext-redundant-acronyms","commit_stats":{"total_commits":97,"total_committers":5,"mean_commits":19.4,"dds":0.04123711340206182,"last_synced_commit":"e670637aa13a223f7d6505349f4a474695e2c115"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retextjs%2Fretext-redundant-acronyms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retextjs%2Fretext-redundant-acronyms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retextjs%2Fretext-redundant-acronyms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/retextjs%2Fretext-redundant-acronyms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/retextjs","download_url":"https://codeload.github.com/retextjs/retext-redundant-acronyms/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252954144,"owners_count":21830895,"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":["atm","natural-language","retext","retext-plugin"],"created_at":"2024-11-17T23:10:49.163Z","updated_at":"2025-05-07T20:46:21.494Z","avatar_url":"https://github.com/retextjs.png","language":"JavaScript","funding_links":["https://github.com/sponsors/unifiedjs","https://opencollective.com/unified"],"categories":[],"sub_categories":[],"readme":"# retext-redundant-acronyms\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 redundant acronyms (such as `ATM machine`\nto `ATM`).\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(retextRedundantAcronyms)`](#unifieduseretextredundantacronyms)\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 redundant\nacronyms (such as `ATM machine` to `ATM`).\n\n\u003e 🙂 **Fun fact**: this is called [`RAS syndrome`][wiki-ras] (`redundant acronym\n\u003e syndrome syndrome`).\n\n## When should I use this?\n\nYou can opt-into this plugin when you’re dealing with content that might contain\ngrammar mistakes, 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-redundant-acronyms\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport retextRedundantAcronyms from 'https://esm.sh/retext-redundant-acronyms@5'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n\u003cscript type=\"module\"\u003e\n  import retextRedundantAcronyms from 'https://esm.sh/retext-redundant-acronyms@5?bundle'\n\u003c/script\u003e\n```\n\n## Use\n\nSay our document `example.txt` contains:\n\n```txt\nWhere can I find an ATM machine?\n```\n\n…and our module `example.js` contains:\n\n```js\nimport retextEnglish from 'retext-english'\nimport retextRedundantAcronyms from 'retext-redundant-acronyms'\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(retextRedundantAcronyms)\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```text\nexample.txt\n1:21-1:32 warning Unexpected redundant `ATM machine`, expected `ATM` atm retext-redundant-acronyms\n\n⚠ 1 warning\n```\n\n## API\n\nThis package exports no identifiers.\nThe default export is\n[`retextRedundantAcronyms`][api-retext-redundant-acronyms].\n\n### `unified().use(retextRedundantAcronyms)`\n\nCheck for redundant acronyms (such as `ATM machine` to `ATM`).\n\n###### Parameters\n\nThere are no parameters.\n\n###### Returns\n\nTransform ([`Transformer`][unified-transformer]).\n\n## Messages\n\nEach message is emitted as a [`VFileMessage`][vfile-message] on `file`, with\n`source` set to `'retext-redundant-acronyms'`, `ruleId` to the lowercase\nacronym, `actual` to the unexpected phrase, and `expected` to suggestions.\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports no additional types.\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,\n`retext-redundant-acronyms@^5`, compatible with Node.js 16.\n\n## Related\n\n*   [`retext-indefinite-article`](https://github.com/retextjs/retext-indefinite-article)\n    — check if indefinite articles are used correctly\n*   [`retext-repeated-words`](https://github.com/retextjs/retext-repeated-words)\n    — check `for for` repeated words\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-redundant-acronyms/workflows/main/badge.svg\n\n[build]: https://github.com/retextjs/retext-redundant-acronyms/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/retextjs/retext-redundant-acronyms.svg\n\n[coverage]: https://codecov.io/github/retextjs/retext-redundant-acronyms\n\n[downloads-badge]: https://img.shields.io/npm/dm/retext-redundant-acronyms.svg\n\n[downloads]: https://www.npmjs.com/package/retext-redundant-acronyms\n\n[size-badge]: https://img.shields.io/bundlejs/size/retext-redundant-acronyms\n\n[size]: https://bundlejs.com/?q=retext-redundant-acronyms\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[wiki-ras]: https://en.wikipedia.org/wiki/RAS_syndrome\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-redundant-acronyms]: #unifieduseretextredundantacronyms\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretextjs%2Fretext-redundant-acronyms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fretextjs%2Fretext-redundant-acronyms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fretextjs%2Fretext-redundant-acronyms/lists"}