check 1: PASS first thirty seconds in tmux $ uv run rule.py 2026-10-13 no-k effort No word contains the letter "k". $ echo $? 0 $ uv run rule.py README.md README.md:3:15: error: "checks" contains "k" [no-k] `rule.py` checks a text file against one writing rule and reports every break the way a compiler rep orts a syntax error: `file:line:col: error:`, the source line, a caret under the word, `N errors gen ... 65 errors generated. $ echo $? 1 $ check 2: PASS no-the on README.md, counted again by tr | grep README.md:3:79: error: "the" is not permitted [no-the] `rule.py` checks a text file against one writing rule and reports every break the way a compiler reports a syntax error: `file:line:col: error:`, the source line, a caret under the word, `N errors generated.`, and exit status 1. The rule changes every day, drawn by the date from a fixed table, or is picked by name from 30. It is one file, Python 3.11 or newer, standard library only: from this folder, `uv run rule.py` prints today's rule and `uv run rule.py draft.txt` checks a file against it (`python3 rule.py` works the same). It takes any UTF-8 text you wrote, as a file or on standard input (`-`), and reads the local calendar date; a text that keeps the rule prints nothing at all. ^~~ ... 102 errors generated. exit 1 tr -cs '[:alpha:]' '\n' < README.md | grep -icx the: 102 check 3: PASS silent pass, one log line per ritual run pass: exit 0, stdout 0 bytes, stderr 0 bytes log after the pass: ['2026-10-13 no-k 0 32 0'] exit codes of --rule, --date, --no-log, missing file: [1, 0, 0, 2]; log lines after them: 1 breaking run: exit 1, 2 errors generated. log now: ['2026-10-13 no-k 0 32 0', '2026-10-13 no-k 1 32 2'] check 4: PASS calendar 1970-01-01 no-dash plain 1970-01-02 no-the effort 1969-12-31 no-repeated-word effort 2026-10-13 no-k effort 2026-10-14 short-sentences plain 24 days from 2026-10-13: 24 distinct names, grades ['effort', 'plain'] --date 2100-02-30: exit 2, rule: error: bad date "2100-02-30"; use YYYY-MM-DD check 5: PASS uv run python -m unittest -v test_R04_no_k_paragraph_passes test_R04_no_k_sentence_breaks test_R05_short_sentences_paragraph_passes test_R05_short_sentences_sentence_breaks ... 60 survivability tests ok, covering R01 to R30: True test_rotation_order_is_fixed ... ok test_grades_alternate ... ok test_list ... ok test_explain_closing_line ... ok Ran 85 tests in 0.076s OK check 6: PASS Unicode, CRLF, NFD, tab and the two examples voila.txt:1:8: error: "le" contains "e" [no-e] Voilà le café de la forêt. ^ voila.txt:1:13: error: "café" contains "e" [no-e] Voilà le café de la forêt. ^ voila.txt:1:16: error: "de" contains "e" [no-e] Voilà le café de la forêt. ^ voila.txt:1:24: error: "forêt" contains "e" [no-e] Voilà le café de la forêt. ^ 4 errors generated. CRLF and NFD copies identical: True tab caret line: '\t ^' market.txt:1:21: error: "market" contains "k" [no-k] We walked to the market. ^ 2 errors generated. kick.txt:1:3: error: "kick" contains "k" [no-k] A kick. ^ 1 error generated. check 7: PASS stdin, no-dash, the README audit loop :1:5: error: "--" is not permitted [no-dash] one -- two ^~ :2:7: error: "" is not permitted [no-dash] three four ^ 2 errors generated. exit 1 --force, well-known, 10-20: exit 0, 0 bytes $ git rev-list HEAD | while read -r h; do git log -1 --format=%B "$h" | rule --rule no-dash --no-log - 2>&1 | sed "s/^:/$h:/"; done 0ccee6c5f0e60f4f6033034c41ff77967684cfdf:1:16: error: "--" is not permitted [no-dash] Tidy the notes -- second pass ^~ 1 error generated. check 8: PASS hard rules, snowball, univocalic, prisoner, names cases: [True, True, True, True, True, True, True, True] :1:6: error: "best" has 4 letters, a snowball needs 3 here [snowball] :1:11: error: "hare" contains "h" [prisoner] :1:11: error: "lace" contains "l" [prisoner] :1:11: error: "tram" contains "t" [prisoner] rule: error: unknown rule "no-5"; see rule --list rule: error: unknown rule "no-é"; see rule --list check 9: PASS failure modes exit 2 unlogged; the checked file is byte-identical exit 2: rule: error: nope.txt: No such file or directory exit 2: draft.txt: error: no words to check exit 2: rule: error: bad.txt: not valid UTF-8 before 9f173351fbfd20068545d9a1f47b51a3d640163b9bcf3b0016a5d5a38ef5604d target.txt after 9f173351fbfd20068545d9a1f47b51a3d640163b9bcf3b0016a5d5a38ef5604d target.txt log lines: 1 (the one ritual run on target.txt) check 10: PASS record, and colour only on a TTY 2026-10-11 no-the broke 3 of 64 words 2026-10-11 no-the survived 0 of 66 words 2026-10-12 no-be broke 5 of 71 words 2026-10-13 no-dash survived 0 of 58 words Survived 2 of 3 days on record. No days on record. escape codes in the tmux capture: ['\x1b[38;2;236;94;82m', '\x1b[39m'] brick error: labels 2, brick underlines 2 NO_COLOR=1 capture: 0 escape bytes stderr piped to a file: grep -c $'\033' prints 0 10 of 10 checks passed.