lexicon.unexplained-abbreviation
What it flags
Acronyms used without a nearby definition. Each forced interruption to guess or look up an acronym breaks the flow and raises the risk of losing attention.
References. WCAG 2.1 SC 3.1.4 (Abbreviations); RGAA 9.4.
At a glance
| Category | lexicon |
| Default severity | warning |
| Default weight | 1 |
| Languages | EN · FR (whitelists differ) |
| Source | src/rules/unexplained_abbreviation.rs |
Detection (v0.2, two-pass — F9)
-
Pre-scan the whole document for acronyms defined in either canonical form:
Full Expansion (ACRONYM)— example:World Wide Web (WWW)ACRONYM (Full Expansion)— example:WWW (World Wide Web)
The “expansion” side must contain at least two alphabetic words, so short parenthetical notes like
(TBD)or(check later)do not count as definitions. -
Match sequences of 2+ consecutive uppercase letters (optionally with digits) in the main text.
-
Filter each candidate against three layers, in order:
- Defined in document (from the pre-scan) — strongest.
- User whitelist from
[rules.unexplained-abbreviation].whitelist. - Baseline whitelist (profile-driven).
-
Flag each remaining occurrence.
A single definition anywhere in the document silences every occurrence of the same acronym — matching how readers actually use documentation (scroll back once to find the expansion, remember it thereafter).
Parameters
| Key | Type | dev-doc | public | falc |
|---|---|---|---|---|
min_length | int | 3 | 2 | 2 |
whitelist | list | extended | minimal | empty |
Default whitelist (v0.2, narrowed by F31): the infrastructure stack — URL, HTML, CSS, JSON, XML, HTTP, HTTPS, UTF, IO, API, CLI, GUI, OS, CPU, RAM, SSD, USB, IDE, SDK, CI, CD — plus common FR/EN acronyms and RFC 2119 emphasis keywords (PDF, SMS, GPS, ID, OK, FAQ, MUST, SHALL, SHOULD, …).
[rules.unexplained-abbreviation]
whitelist = ["WCAG", "ARIA", "ADHD", "LLM"]
User-whitelist entries are additive over the baseline — they extend it, never replace it.
Suppression
See also
lexicon.jargon-undefined— the content-word equivalent.
References
See References for the full bibliography.