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

Conditions

A condition tag describes the cognitive condition a rule primarily targets. Conditions are orthogonal to profiles: a profile (dev-doc, public, falc) sets the strictness of the always-on rules; conditions enable additional rules tuned for a specific audience.

The fixed ontology

TagTargets
generalAlways-on rules. The v0.2 baseline.
a11y-markupProse-adjacent markup signals (e.g. all-caps shouting).
dyslexiaDyslexia-targeted signals. Source: BDA Dyslexia Style Guide.
dyscalculiaNumeric format and anchoring. Source: CDC Clear Communication Index.
aphasiaAphasia-targeted signals. Source: FALC, plain-language guides.
adhdAttention-fragility signals.
non-nativeNon-native reader signals (vocabulary rarity, idioms).

The set is fixed. New tags are a deliberate, versioned change.

How filtering works

For every rule the engine evaluates:

  • A rule tagged general is always enabled.
  • A rule without general runs only when at least one of its tags appears in the user’s active condition list.

All 17 v0.2 rules carry general, so the default behavior is unchanged. Future tagged rules (e.g. lexicon.all-caps-shouting for a11y-markup, syntax.nested-negation for aphasia + adhd) opt in via this list.

Configuring conditions

In lucid-lint.toml:

[default]
profile = "falc"
conditions = ["dyslexia", "aphasia"]

On the command line (comma-separated, repeatable):

lucid-lint check --profile falc --conditions dyslexia,aphasia docs/

FALC retains its regulatory meaning. Adding dyslexia does not relax or rename it — it layers dyslexia-specific signals on top.

Why tags, not parallel profiles

Three strictness levels × N conditions explodes combinatorially. Keeping the two axes orthogonal preserves the regulatory meaning of falc while letting users compose audience-specific overlays. See ROADMAP entries F71 and F72.