book/.vale.ini
Michał Szczepanik cb118d7e03
All checks were successful
Lint / Lint with codespell (push) Successful in 35s
Lint / Lint with vale (push) Successful in 39s
Build and publish / Build site and deploy on success (push) Successful in 55s
Add prose linters
This introduces the familiar codespell and less familiar vale.

Vale (https://vale.sh/) is a prose linter which targets writing style.
It checks the text against a set of rules (built-in, installed, or
custom). Available rules range from simple spelling / uppercasing
mistakes, through checks for "potentially offensive words", to more
grammar-like recognition of passive voice (verbs, I guess) or needlessly
wordy phrases.

This commit introduces, as an example and experiment, a
`PsyInf.BrandNames` rule which flags (some) misspellings of (some)
product names. It also enables the built-in `Vale` set of rules.
This will certainly require some tweaking (built-ins are likely too
sensitive, custom rules will need expansion), if it is to stay.

Vale installation from PyPi is "not affiliated or endorsed" (on PyPi)
but mentioned in vale docs. The workflow uses a specific debian-13
Docker image, in anticipation of it becoming the default, because it has
uv built in.

Personally, I am on the fence with the inclusion of both linters. I
always thought that spellchecks are sufficient to be run locally. On
the other hand, we've all done (too?) many "fix typos" PRs across our
docs sites, and I've been guilty of wrong casing in names (e.g. Git but
git-annex) so I'd be keen to keep vale even if just for this kind of
rules. I am also curious how vale's spell checking compares to codespell
(codespell looks for specific common misspellings rather than doing a
full dictionary check, which is good because there's hardly any false
positives).
2026-10-17 01:22:13 +02:00

5 lines
84 B
INI

StylesPath = .vale
MinAlertLevel = suggestion
[*.qmd]
BasedOnStyles = Vale, PsyInf