Namegarage is built and maintained with coding agents, mostly Claude Code and Codex. Almost every identifier in the codebase uses American English: normalizeDomain, authorize, catalog. On September 17, 2026, "enrol" appeared in a session's output. A scan across the repository found roughly four American spellings for every British one (2,166 occurrences to 500) in prose and comments.
We added a standing rule: all English in the project β UI copy, emails, docs, comments, tests, and blog posts β uses American English. On September 21, we moved that rule out of one agent's private notes into a shared decision record and shared pull-request review instructions. On October 16, we added a writing skill that repeated the same rule.
British English kept coming back anyway.
What the commit history shows #
To measure what landed on main after written instructions existed, we scanned first-parent commits from the September 21 shared-rule commit through November 21, 2026 (1,110 commits total). We excluded our four dedicated cleanup sweeps from both numerators and denominators, and we also excluded one September 22 Codex-co-authored merge (+163 net raw core-list tokens, +1 adverb, +13 "cancelled"): 153 of its 162 added "catalogue" and "catalogues" matches already appeared on identical lines in its September 20 review tree before the September 21 rule existed. That leaves 1,105 commits, grouped by Co-Authored-By trailer (486 Claude-co-authored, 429 Codex-co-authored, and 190 other or unattributed β 142 unattributed, 26 Antigravity, 9 Gemini, 7 multi-agent, and 6 Muse).
Beyond those five excluded commits, our path and content filters removed:
- Path exclusions passed to
git log --first-parent -p -U0: the American English decision record, the legal-policy test file asserting against British spellings, lock files, vendored paths, minified JS/MJS bundles, SVG assets, JSON files, and plain-text assets. - Rule-discussion and proper-noun lines matched case-insensitively by
META_LINE_REacross added (+) and removed (-) diff lines (excluding+++and---headers).
All three buckets count regex token matches across the remaining repository diffs β covering documentation, UI copy, comments, test names, string literals, CLI arguments, code identifiers, and test fixture values β rather than prose parsed apart from code:
- Raw core-list tokens: raw case-insensitive whole-word matches against the complete
CORE_UKpattern below, combining strictly British forms with secondary US-dictionary variants ("catalogue","catalogues", and"whilst") where the repository standardizes on"catalog","catalogs", and"while"(and excluding"enrolled"and the verb"forwards", which our rule allows). Because it scans tokens across diffs uniformly, this bucket mixes discretionary prose and test descriptions with coordinated code and configuration literals β for example, in our September 27 Trusted Types rollout, where the new enforcement configuration, validator code, and test fixtures adopted the existing'catalogue'reporting vocabulary for/catalog/1. - British-leaning adverbs (
"afterwards"and"backwards"): tracked byADVERB_UKacross repository files, where American prose prefers"afterward"and"backward"(noting that some matches fall inside test variables or fixture IDs rather than prose). - Raw
"cancelled"and"cancelling"tokens: tracked separately byCANCELLED_REbecause database schemas, API payloads, and payment webhooks storestatus = "cancelled", so diffs mix required wire literals and state-machine tests with prose.
For each non-excluded commit from the September 21 shared-rule commit through November 21, 2026 and each bucket, we counted non-header + and - diff lines (skipping lines matching META_LINE_RE) using these exact exclusions and regular expressions, and computed commit_delta = added_tokens - removed_tokens:
EXCLUDES = [
":(exclude)docs/decisions/2026-09-17-american-english.md",
":(exclude)tests/test_website_legal.py",
":(exclude)*.lock",
":(exclude)*vendor*",
":(exclude)*.min.js",
":(exclude)*.min.mjs",
":(exclude)*.svg",
":(exclude)*.json",
":(exclude)*.txt",
]
META_LINE_RE = re.compile(
r'(?:never\s+["\']?(?:catalogue|behaviour|colour|enrol)'
r'|Media Centre|media-centre|British spelling|two British spellings)',
re.I,
)
CORE_UK = re.compile(
r"\b("
r"catalogues?|behaviours?|behavioural|colours?|coloured|colouring|"
r"honours?|honoured|honouring|favours?|favoured|favourites?|"
r"centres?|centred|defences?|licences?|organisations?|programmes?|"
r"enrol|enrols|enrolments?|fulfil|fulfils|fulfilments?|whilst|"
r"labelled|labelling|travelled|travelling|modelled|modelling|signalled|signalling|"
r"normalis(?:e[ds]?|ing|ation)|serialis(?:e[ds]?|ing|ation)|"
r"recognis(?:e[ds]?|ing)|authoris(?:e[ds]?|ing|ation)|"
r"finalis(?:e[ds]?|ing)|optimis(?:e[ds]?|ing|ation)|"
r"sanitis(?:e[ds]?|ing|ation)|initialis(?:e[ds]?|ing|ation)|"
r"summaris(?:e[ds]?|ing)|anonymis(?:e[ds]?|ing)|"
r"customis(?:e[ds]?|ing|ation)|stabilis(?:e[ds]?|ing)|"
r"characteris(?:e[ds]?|ing)|synchronis(?:e[ds]?|ing|ation)|"
r"prioritis(?:e[ds]?|ing)|categoris(?:e[ds]?|ing)|"
r"minimis(?:e[ds]?|ing)|maximis(?:e[ds]?|ing)|standardis(?:e[ds]?|ing)|"
r"realis(?:e[ds]?|ing)|organis(?:e[ds]?|ing)|analys(?:e|ed|ing)|"
r"utilis(?:e[ds]?|ing)|judgements?|artefacts?"
r")\b",
re.I,
)
ADVERB_UK = re.compile(r"\b(afterwards|backwards)\b", re.I)
CANCELLED_RE = re.compile(r"\bcancell(?:ed|ing)\b", re.I)
A commit enters a cohort's positive commit count only when commit_delta > 0, and the +N totals below sum positive-commit additions only (discarding non-cleanup commits with net removals, such as retiring an older signing integration).
| Positive-commit tracked-spelling token additions across 1,105 first-parent commits landing after the shared rule | |||
|---|---|---|---|
| Commit cohort (commits) | Raw core-list tokens: positive commits (share), added tokens | afterwards /backwards : positive commits (share), added tokens |
Raw cancelled /cancelling : positive commits (share), added tokens |
| --- | --- | --- | --- |
| Claude-co-authored (486) | 23 (4.7%), +77 | 54 (11.1%), +103 | 76 (15.6%), +1,165 |
| Codex-co-authored (429) | 11 (2.6%), +83 | 4 (0.9%), +4 | 38 (8.9%), +381 |
| Other and unattributed (190) | 3 (1.6%), +18 | 4 (2.1%), +6 | 14 (7.4%), +103 |
| All included commits (1,105) | 37 (3.3%), +178 | 62 (5.6%), +113 | 128 (11.6%), +1,649 |
Including non-cleanup removals, whole-window net deltas across those 1,105 commits are -209 raw core-list tokens, +55 "afterwards"/"backwards", and +1,547 raw "cancelled"/"cancelling". Across the first two non-cancellation buckets, net additions landed more often in Claude-co-authored commits than in Codex-co-authored commits for raw core-list tokens (4.7% vs 2.6%) and nearly 12 times as often for "afterwards" or "backwards" (11.1% vs 0.9%), while total core-list additions were higher in the Codex cohort (+83 vs +77) largely because of the November 10 deployment verifier. These rates measure raw token matches that landed in each co-author cohort rather than isolated agent spelling choices or verified writing-rule violations: for example, in the Codex cohort, the September 27 Trusted Types rollout adds 16 net whole-word "catalogue" matches: 7 are coordinated literals where the new enforcement configuration, validator code, and test fixtures adopted the existing 'catalogue' reporting vocabulary for /catalog/1 (such as sales-preview = { enforce_routes = ["home", "catalogue"] }), 1 documents that exact route-family name, and 8 are discretionary wording that could have used "catalog" β including the comment immediately above that config line (# First rollout candidate: catalogue pages do not load transaction vendorsβ¦), a Playwright test title, a CLI error message, and rollout docs. Similarly, the October 10 checkout update carries "does not change afterwards" in version 2 of a purchase agreement that retained the quoted phrase verbatim from version 1 written on August 1 β more than seven weeks before the September 21 rule existed. Comparing agent spelling violations directly would require separating newly drafted discretionary text from shared configuration or contract literals, copied files, and pre-rule text in both cohorts. The third column likewise reports raw token frequency rather than prose drift: branches touching payment cancellation contracts or tests legitimately add status = "cancelled" or cancelled_payment_review.
After a broad codebase cleanup on October 19, positive-commit additions across the remaining 779 non-cleanup commits (excluding three later cleanup sweeps) looked like this:
| Positive-commit tracked-spelling token additions across 779 first-parent commits landing after the October 19 cleanup | |||
|---|---|---|---|
| Commit cohort (commits) | Raw core-list tokens: positive commits (share), added tokens | afterwards /backwards : positive commits (share), added tokens |
Raw cancelled /cancelling : positive commits (share), added tokens |
| --- | --- | --- | --- |
| Claude-co-authored (309) | 9 (2.9%), +28 | 27 (8.7%), +50 | 58 (18.8%), +978 |
| Codex-co-authored (335) | 6 (1.8%), +52 | 2 (0.6%), +2 | 23 (6.9%), +270 |
| Other and unattributed (135) | 0 (0.0%), 0 | 3 (2.2%), +3 | 10 (7.4%), +71 |
| All included commits (779) | 15 (1.9%), +80 | 32 (4.1%), +55 | 91 (11.7%), +1,319 |
Including non-cleanup removals across those 779 commits, whole-window net deltas are +22 raw core-list tokens, +41 "afterwards"/"backwards", and +1,262 raw "cancelled"/"cancelling". After October 19, "afterwards" and "backwards" remained concentrated in Claude-co-authored commits (8.7% vs 0.6%), mixed between prose comments and fixture identifiers, while "catalogue" and "catalogues" β secondary dictionary variants disallowed in prose only by repository convention rather than unambiguously British forms β accounted for 72 of the 80 raw core-list additions (90%).
Four patterns we saw in the commit history #
Reading the diffs showed four recurring patterns where British tokens appeared alongside American code and written rules:
Mixed spellings inside one probe: On September 28, our Trusted Types browser probe checked the American route/catalog/2 right after asserting a failure message with"catalogue" β and its unit test pairedlet path = '/catalog/1' with/second catalogue/ to match that error text:
assert.equal(second.status(), 200, 'second catalogue document must be served');
assert.equal(new URL(page.url()).pathname.replace(/\/$/, ''), '/catalog/2');
American titles, British test bodies: Earlier on October 19, a blog article shipped with*"Catalogue refresh notices"* in its description and body. Three days after the October 19 cleanup, a Claude-co-authored search feature titled*"the catalog's search box finds names by meaning"* extended an existing test file using"catalog" in its filename, adding 17"catalogue" occurrences in new test descriptions and comments alongside three older occurrences already in that file. #
Shared vocabulary across follow-up commits: On November 10, a Codex-co-authored deployment verifier added 43"catalogue" and"catalogues" token matches across 21 of its 39 changed files, spanning documentation, comments, infrastructure resource names, code variables, CLI arguments ("catalogue" ), and verification modules. Over the next ten days, five follow-up commits across both Claude- and Codex-co-authored branches touched that feature and also included"catalogue" in new docs, test comments, and a Python exception:
raise ValueError("Catalogue render verification is disabled")
Wire tokens beside buyer prose: Direct-sale schemas, API payloads, and payment webhooks storestatus = "cancelled" andcancelled_payment_review right next to customer-facing error and status strings. Cleanup passes had to keep the wire literals intact while standardizing adjacent buyer copy on"canceled" :
// Keep wire and database tokens intact; write "canceled" in buyer copy.
if (status === "cancelled") return "This invoice is canceled. Do not send a payment.";
What cleaning it up took #
Cleaning up British English safely took four separate sweeps across five weeks:
- October 19: A first broad pass across nearly 200 files (518 lines changed) updated site templates, checkout scripts, workers, the lease portal, CLI copy, docs, and tests.
- October 23: A 20-file documentation and blog pass paired our plain-English writing rules with American English.
- November 21 (live copy, docs, and comments): A 66-file sweep fixed residual British spellings across buyer messages, emails, Telegram alerts, edge functions, unnarrated blog posts, active docs, and code comments, separating preparatory formatting and type cleanups into their own commit so reviewers could inspect the wording diff alone.
- November 21 (internal Python modules): An 11-module pass cleaned docstrings, comments, and one operator warning after splitting mechanical formatter changes from 12 semantic edits and verifying docstring-stripped AST identity on 10 of the 11 modules so no runtime code changed silently.
Running a blind global search-and-replace across the repository would have broken production systems in five places:
- Database and webhook contracts: Live contracts use both spellings, and each boundary must keep the exact spelling its provider or schema expects. Our Stripe webhook handler matches
payment_intent.canceled(and ignores unrecognized event types) and our lease table constrainsstatusto"canceled", while our direct-sale and Bitcoin invoice paths usestatus = "cancelled"andcancelled_payment_review. Standardizing either boundary globally breaks webhook handling or live state writes; preserve each contract's literal spelling and standardize customer-facing prose, emails, warnings, and comments on"canceled". - Byte-fingerprinted verification modules: Three deployment-verification modules hash their own raw source bytes to seal resumable full-catalog render checkpoints. Fixing
"catalogue"inside those strings invalidates checkpoints sealed by earlier commits. Pre-merge review caught that hash dependency, so we restored their exact bytes and queued the normalization for either the next planned verifier bump or CLI output presentation. - SHA-256-pinned host scripts: One host-side logging containment helper is pinned by SHA-256 hash. Changing its three
"Transaction cancelled"strings has to move alongside its integrity pin and per-file Python target version. - Release-guarded public packages: Thirteen files sit behind a coordinated public-release guard whose check hashes fingerprinted source files against the active release manifest. On November 21, the active release entry was already
published, so editing fingerprinted bytes then would have required opening a new coordinated release record (unaffected components such as the API, SDK, or catalog skill can retain their published versions alongside a compatibility explanation inside that new record; by contrast, anupcomingentry can refresh its recorded digest in place). Those strings still wait for the next planned release rather than touching guarded packages for spelling edits alone. - Immutable legal snapshots and narrated audio: Dated legal documents keep SHA-256 integrity records until their next legal revision, and eight older blog posts have saved ElevenLabs audio keyed by each Markdown file's SHA-256 hash. Fixing a single
"catalogue"in one of those posts hides its audio player until the post is re-narrated.
What stopped drift, and what remains #
Both measurement windows operated under the September 21 shared rule. Excluding the pre-rule September 22 merge, commits with positive net raw core-list token additions fell from 6.7% (22 of 326 non-cleanup commits, +98 added tokens) before the October 19 sweep to 1.9% (15 of 779 commits, +80 added tokens) afterward. Because that decline overlaps the October 19 sweep stripping existing British spellings out of local context, the October 16 writing skill, and a shifting mix of tasks, commit history alone cannot isolate how much came from written instructions versus the cleanup and workload mix. Either way, written guidelines did not drive drift to zero.
Automated build checks stopped drift β only on the words they checked. The test covering current Privacy Policy phrasing checked only two British spellings ("behavioural" and "colour"), inherited from an early September revision. Because "catalogue" was missing from that two-word check, archived Privacy Policy snapshots dated September 20 and September 22 (v6) still picked up "our catalogue" and stay preserved verbatim as historical legal records. Later named-version tests (v11, v12, and v14) expanded the check to five words ("catalogue", "behaviour", "colour", "licence", "organisation"), and every policy snapshot after September 22 stayed clean across all five.
Twenty-six deferred items remain tracked in one cleanup backlog across those guarded boundaries: 13 files protected by the coordinated release manifest (plus one matching doc line), 3 byte-fingerprinted verification modules, 1 SHA-256-pinned host helper, 1 host traffic script, and 8 narrated blog posts waiting for re-narration.
How to lint for dialect drift #
Enforcing American English mechanically does not require custom regex scripts or rewriting a legacy codebase first. Off-the-shelf tools cover the boundaries above with minimal maintenance:
typos for code, tests, comments, and identifiers:crate-ci/typos splits camelCase andsnake_case identifiers and keeps false positives low on technical jargon. Settinglocale = "en-us" flags exclusively British forms (behaviour ,behavioural ,colour ,honour ,labelled ,signalled ,recognise ,initialise ,serialise ,fulfil ,enrol ,artefact , andCentre ), while leaving secondary US-accepted forms such as"catalogue" ,"catalogues" ,"whilst" ,"afterwards" ,"backwards" ,"cancelled" , and"cancelling" unflagged by default.Run typos incheck-only mode in pre-commit and CI β omitting--write-changes and overriding any upstream hook default that edits staged files, with--force-exclude when passing explicit paths β so a linter never rewrites a CLI subcommand or contract string. Put"whilst" and"afterwards" under[default.extend-words] . Keep"backwards" out of global code checks β it is a valid CSS keyword inanimation-fill-mode: backwards β and check it in the markup-aware prose rule below instead. Keep"catalogue" ,"catalogues" ,"cancelled" , and"cancelling" out of global or Markdown/HTMLtypos rules (unless every CLI option, subcommand dispatcher, and wire contract using them is explicitly exempted β auto-rewriting a documented--catalogue-size flag in a shell snippet or a script's"catalogue" subcommand breaks the command or release gate when the parser rejects"catalog" ).Exclude immutable, generated, and hash-pinned files under [files] β dated legal snapshots (**/legal/** ), versioned partner agreements (**/partner-agreements/** ), third-party trust snapshots (**/trust/** ), third-party API spec snapshots (docs/api-specs/** ), vendored assets (**/vendor/** , including checksum-pinned third-party SDKs whose filenames omit.min. ), Wrangler-generated Worker declarations (**/worker-configuration.d.ts , where regenerating restores any manual spelling edits), release and blog narration manifests (**/public-release.json ,**/blog/narration.json ), frozen test fixtures (tests/fixtures/** , including byte-checked agreement goldens), files that intentionally quote British examples such as spelling-policy records and negative spelling-assertion tests, checksum-pinned build patches (*.patch , alongside any paths derived from package manifests'repository_path entries), PGP key blocks (*.asc ), minified assets (*.min.* ), and lock files β and derive dynamic exclusions directly from both manifests rather than maintaining hand-coded file lists: narrated posts from**/blog/narration.json , and release-fingerprinted source files from both path arrays in**/public-release.json (resolvingsource_paths underliquidate/ , such ascli/main.py βliquidate/cli/main.py , andrepository_source_paths from the repository root) by passing generated--exclude flags or syncing an exclude block. Verify withtypos --files --force-exclude (with those generated--exclude flags attached) that guarded paths such asliquidate/cli/main.py and generated**/worker-configuration.d.ts files stay out of scope while handwritten Worker TypeScript files remain checked, setcheck-filename = false so content-hashed asset filenames are not flagged as words, keep third-party dependency option names that use British spellings (contracts such as a TOML parser'sunsafeKeyBehaviour safeguard option, where renaming the key tounsafeKeyBehavior silently reverts to the parser's default behavior) under[default.extend-identifiers] so ordinarybehaviour prose stays flagged, and exempt existing DOM ID declarations, lookups, and selectors (id="enquire" ,getElementById("enquire") , and#enquire , keeping all three aligned while ordinary proseenquire remains flagged), existing infrastructure state addresses (such as an OpenTofu resource address likewidget_enquire under[default.extend-identifiers] ) and provider resource names ("widget-enquire" underextend-ignore-re , where renaming the address would move state while ordinaryenquire prose stays flagged), external proper nouns, wire tokens, literal domain names used as fuzzy-match test data (colour[.]com ), exact domain names recorded as keys in historical sale and payout scripts β including sold domains no longer present in the live catalog (using a synthetic example such asregistred[.]com so exact recorded keys pass while the same misspelling in surrounding prose still fails) β and any repository-specific acronyms or vendor names flagged bytypos 's general dictionary withextend-ignore-re (or[default.extend-words] ):
[files]
extend-exclude = [
"**/legal/**",
"**/partner-agreements/**",
"**/blog/narration.json",
"**/public-release.json",
"**/trust/**",
"**/vendor/**",
"**/worker-configuration.d.ts",
"docs/api-specs/**",
"tests/fixtures/**",
"tests/test_website_legal.py",
"docs/decisions/*american-english*.md",
"*.patch",
"*.asc",
"*.min.*",
"*.lock",
]
[default]
locale = "en-us"
check-filename = false
extend-ignore-re = [
"Media Centre",
"colour[.]com",
"registred[.]com",
"#enquire",
"id=[\"']enquire[\"']",
"(?i)getElementById\\([\"']enquire[\"']\\)",
"widget-enquire",
"status\\s*={1,3}\\s*[\"']cancelled[\"']",
"cancelled_payment_review",
]
[default.extend-identifiers]
unsafeKeyBehaviour = "unsafeKeyBehaviour"
widget_enquire = "widget_enquire"
[default.extend-words]
whilst = "while"
afterwards = "afterward"
Two boundaries matter in that starter file:
- Why
"catalogue"and"cancelled"stay out oftyposon Markdown and HTML:typosdoes not parse Markdown code spans, fenced shell blocks, HTML<code>tags, or URLs. Enablingcatalogue = "catalog"orcancelled = "canceled"on Markdown and HTML flags valid documented CLI options inside shell examples such as--catalogue-size(or invites auto-fixes that give operators an invalid--catalog-sizecommand), as well as inline`CANCELLED`status enums and negotiation query URLs like`?status=active|sold|cancelled`. Keep both"catalogue"/"catalogues"and cancellation-word checks in a markup-aware prose parser instead. - Why source comments and test descriptions need an explicit extension: Leaving
"catalogue"out of[default.extend-words]protects Python CLI dispatchers and route strings, but also leaves source comments and test descriptions unchecked for"catalogue"β including the October 22 search tests and browser test descriptions cited earlier. Two safe ways close that gap without breaking CLI flags, subcommands, working DOM selectors, or saved report schemas: either scope a dedicated[type.js.extend-words]rule (catalogue = "catalog"andcatalogues = "catalogs") strictly to editable JavaScript test descriptions (such astests/a11y/buyer-recovery.spec.cjsandtests/a11y/keyboard-journeys.spec.cjswhile keeping"#enquire",id=["']enquire["'], and(?i)getElementById\(["']enquire["']\)inextend-ignore-reso theenquirebutton declaration, lookup, and selector stay aligned and only"catalogue"test titles are flagged, or linting only test-description strings; exclude contract-matching assertion specs and measurement harnesses whose saved baselines storecatalogue.sha256), or enable[type.js.extend-words]alongside file exclusions for harnesses and CLI contract specs (tools/measure_website.cjs,tests/js/deploy_render_probe.cjs,tests/a11y/trusted-types.spec.cjs) plusextend-ignore-reexemptions for live JavaScript route-class literals (['"]catalogue['"]) and serialized object or baseline lookups (catalogue:\s*\{,\.catalogue\b); for comments across languages, runValeover source comments (noting thatValeparses code comments rather than test-name strings) and enable"catalogue"under[default.extend-words]only once every literal CLI subcommand, option flag like--catalogue-size, route-class identifier, and persisted report field is explicitly allowlisted.
Vale (optionally backed by Hunspell en_US) for docs, templates, and rendered output: Because typos does not parse Markdown or HTML structure, pairing it withVale handles prose boundaries β and overloaded terms like"catalogue" and"cancelled" β cleanly. Vale skips fenced code blocks, inline code spans, and HTML tags by default, and accepts standardHunspellen_US dictionaries throughextends: spelling alongside an explicit UK-to-US substitution rule. Inline<!-- vale off --> /<!-- vale on --> directives belong only in formats whose renderer preserves HTML comments (such as plain repository docs). Never place them in Namegarage blog Markdown: our blog renderer keeps raw HTML disabled and escapes HTML comments into visible paragraph text, leaving the comments visible to readers and the suppressed wording still flagged if you lint rendered HTML. Putting narrow verbatim quote patterns (using\s+ between words so line-wrapped Markdown and HTML quotations match identically) and unquoted URLs (https?://[^\s<>"']+ ) in the substitution rule'sexceptions: list instead of HTML comments (or.vale.ini 'sTokenIgnores , which skipped escaped quotes and plain HTML paragraphs in our Vale 3.18.0 HTML test) applies the same exemptions to both Markdown sources and rendered HTML without leaking markup into published pages:
extends: substitution
message: "Use '%s' instead of '%s'."
level: error
ignorecase: true
exceptions:
- 'the\s+seller\s+cancelled\s+a\s+purchase\s+agreement'
- 'Catalogue\s+refresh\s+notices'
- 'https?://[^\s<>"'']+'
swap:
catalogue: catalog
catalogues: catalogs
behaviour: behavior
colour: color
cancelled: canceled
cancelling: canceling
afterwards: afterward
backwards: backward
Running Vale β or focused build assertions like our Privacy Policy checks β over rendered editable buyer copy (domain pages, checkout messages, emails, feeds, and active blog posts) catches wording leaked by shared partials. Exempt versioned legal documents wherever they render, including the stable/privacy/ route: even when source lint skips dated archive snapshots,/privacy/ still renders our current SHA-256-recorded Privacy Policy verbatim (including"the seller cancelled a purchase agreement" until its next legal revision), so an unconditional rendered-site ban on"cancelled" breaks valid builds. Keep rendered checks limited to editable prose rather than bare inventory domain names such ascancelled.com orcolour.com , which Vale splits at the dot rather than exempting through scheme-prefixed URL patterns, and enable plain text explicitly in.vale.ini (IgnoredScopes = code, tt, bdi above[*.{md,html,txt}] β scoping only to[*.{md,html}] lets Vale exit0 silently without inspecting.txt emails or.xml feeds). That ignores<bdi translate="no"> domain slots in HTML (such as<h2 id="price-alert-title">Price alerts for <bdi translate="no">cancelled.com</bdi></h2> ); for plain-text email parts and extracted RSS<item>``<title> and<description> fields, mask exact catalog domain identifiers before linting them as.txt (or via--ext=.txt ) soPrice alerts for cancelled.com passes in every format while prose likeYour invoice was cancelled still fails. Within editable buyer prose outside those legal archives and catalog identifiers, rendered-output checks can reject"cancelled" and"cancelling" cleanly.
3.
Where codebook and standalone Hunspell fit: If you also want live editor LSP diagnostics over code strings and comments from a single Rust binary,codebook ( codebook-lsp lint ) uses Tree-sitter withdictionaries = ["en_us"] ,flag_words ,ignore_paths , andignore_patterns . Because it validates against a full dictionary rather than a targeted typo list, repositories with domain names or vendor jargon need a maintainedwords allowlist alongsideflag_words for secondary variants like"catalogue" and"cancelled" . StandaloneHunspell lacks code and Markdown-fence awareness and is noisy across source files; use Hunspell dictionaries inside Vale instead.
4.
Freeze a baseline for guarded files: Whichever checks run in pre-commit or CI, keep immutable and generated exemptions β dated legal snapshots (**/legal/** ), versioned partner agreements (**/partner-agreements/** ), third-party trust snapshots (**/trust/** ), third-party API spec snapshots (docs/api-specs/** ), vendored SDKs and scripts (**/vendor/** ), Wrangler-generated Worker declarations (**/worker-configuration.d.ts ), release and blog narration manifests (**/public-release.json ,**/blog/narration.json ) plus narrated Markdown files and release-fingerprinted source files (derived from bothsource_paths resolved underliquidate/ andrepository_source_paths from the repository root), frozen test fixtures (tests/fixtures/** , including byte-checked agreement goldens), spelling-policy records and negative spelling-assertion tests, checksum-pinned build patches (*.patch / package-manifestrepository_path entries), PGP keys (*.asc ), SHA-256-pinned scripts, and byte-fingerprinted modules β in an explicit exclude list, confirm coverage withtypos --files --force-exclude , and require review before any new path joins it. Passing staged files frompre-commit totypos orVale stops new drift immediately without disturbing hash-keyed artifacts.
For teams building with multiple coding agents, treat dialect rules like linting rather than etiquette: run typos in check-only mode across code and tests (extending "catalogue" into test and source file types only when scoped to editable descriptions or paired with live contract and serialized-field allowlists), run Vale or rendered-output checks across docs and editable customer copy, keep immutable files, catalog identifiers, and wire tokens in explicit allowlists, and catch the first "catalogue" before follow-up edits repeat it.