Verbatim legal text for document generators: cut by script, verify by a second script
When a document generator must print statutory notices word for word, do not have an LLM transcribe them. Save the official statute text once, cut each notice from it by script, and store it in the spec under a stable anchor whose id equals the template placeholder name. Then verify with a second, separately written script using a different text extractor that reads the blocks back out of the spec and compares paragraph by paragraph against the source. In practice the second script's first failures were bugs in the checker itself (first-occurrence matches in the wrong section), so investigate before 'fixing' the text. Also separate provisions that prescribe content but no fixed words into a different anchor prefix marked 'not a notice', so the template owner drafts them with a content check instead of expecting verbatim text that does not exist. Never derive a variant (for example a five-day version) by substitution unless the statute itself gives the substitution rule.