A Vale-compatible prose style for non-native English speakers. Tailored for technical documentation.
Important
Prim is in early stage. It is usable but expect frequent changes before it becomes stable.
Add https://github.com/Microflash/Prim/releases/latest/download/Prim.zip to the list of Packages in the .vale.ini file.
StylesPath = .github/styles
MinAlertLevel = suggestion
Packages = proselint, \
https://github.com/Microflash/Prim/releases/latest/download/Prim.zip
[*.{md,txt}]
BasedOnStyles = Vale, Prim, proselintTo sync the latest updates, run vale sync.
- Use short sentences (< 30 words).
- Use active voice in present tense.
- Avoid Latin to prevent a yet another language in the mix. Use English equivalents.
- Use an apostrophe only to indicate a possessive.
- Avoid uncommon contractions.
- Rules are written in
ymlfiles using the syntax described by Vale docs. - Every rule has a fixture against which you can run tests.
- Tests are run against the log output snapshots of Vale.
Run pnpm i to download the test dependencies; you would need them to run the tests.
A typical workflow looks like this.
- Add a new rule by creating a new
Prim/<RuleName>.ymlfile, or modify an existing rule in the existingPrim/<RuleName>.ymlfile. - Add or update the fixtures in the
test/fixtures/<RuleName>/test.mdfile. - Generate or update a snapshot with
pnpm snapshot:update - Run
pnpm testto run the tests.