Skip to content Aller au contenu

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

Categorylexicon
Default severitywarning
Default weight1
LanguagesEN · FR (whitelists differ)
Sourcesrc/rules/unexplained_abbreviation.rs

Detection (v0.2, two-pass — F9)

  1. 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.

  2. Match sequences of 2+ consecutive uppercase letters (optionally with digits) in the main text.

  3. Filter each candidate against three layers, in order:

    1. Defined in document (from the pre-scan) — strongest.
    2. User whitelist from [rules.unexplained-abbreviation].whitelist.
    3. Baseline whitelist (profile-driven).
  4. 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

KeyTypedev-docpublicfalc
min_lengthint322
whitelistlistextendedminimalempty

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 Suppressing diagnostics.

See also

References

See References for the full bibliography.