Skip to main content

Module simple_english

Module simple_english 

Source
Expand description

Gate: prose follows the objective SimpleEnglish checks.

This is a compatibility port of the deterministic checks the vendored SimpleEnglish linter expresses, adapted to Markdown, to structural passage resolution, and to this project’s citable-failure contract. It reports only the objective subset: sentence length, contractions, perfect tense, -ing verbs, banned modals, semicolons, and logic dashes. Judgment rules — active voice, term familiarity, one-item-one-name — are review-held in SPEC-simple-english.md, never inferred here.

The passage mode comes from structure. Every sentence carries the 25-word descriptive limit, except the command sentence of a numbered step in a guide, which carries 20. The gate never reads a verb or a heading to guess the mode. Protected spans stay exact: a code span counts as one word, and an uppercase RFC 2119 keyword is left alone.

Constants§

ADOPTION_EXEMPT
Repository-relative files held under a shrinking adoption exemption for SimpleEnglish.
CITES
The rules this gate can cite.

Functions§

run
Judge every markdown file pre-commit passed.