My personal prose style.
- What is this?
- When should I use this?
- Install
- Use
- API
- Types
- Compatibility
- Related
- Contribute
- Security
- License
This is a preset for retext to check some prose. It’s used on all the readmes I work on.
Feel free to use this. But you can also create your own personal style preset.
This package is ESM only. In Node.js (version 16+), install with npm:
npm install retext-preset-wooorm
In Deno with esm.sh
:
import retextPresetWooorm from 'https://esm.sh/retext-preset-wooorm@5'
In browsers with esm.sh
:
<script type="module">
import retextPresetWooorm from 'https://esm.sh/retext-preset-wooorm@5?bundle'
</script>
import {retext} from 'retext'
import retextPresetWooorm from 'retext-preset-wooorm'
import reporter from 'vfile-reporter'
const file = await retext()
.use(retextPresetWooorm)
.process('This and and that.')
console.error(reporter(file))
Yields:
1:6-1:13 warning Unexpected repeated `and`, remove one occurrence and retext-repeated-words
⚠ 1 warning
This package exports no identifiers.
The default export is retextPresetWooorm
.
Preset to support my personal prose style (Preset
).
- checks for a line ending between sentences
- checks “indefinite articles”: “a” or “an”
- checks quotes and apostrophes (
""
>“”
) - checks accidental repeated words
- checks diacritics
- checks redundant acronyms
- checks incorrectly placed apostrophes in contractions
This package is fully typed with TypeScript. It exports no additional types.
Projects maintained by me are compatible with maintained versions of Node.js.
When I cut a new major release, I drop support for unmaintained versions of
Node.
This means we try to keep the current release line, retext-preset-wooorm@^5
,
compatible with Node.js 16.
remark-preset-wooorm
— personal markdown style
Yes please! See How to Contribute to Open Source.
This package is safe.