Dated research context; this is a retained research note, not an independent manuscript witness. --- name: Don't apply blanket orthographic substitution rules — use attested per-stem variants only description: Ed 2026-04-29 — orthographic variant generation must use ATTESTED per-stem variants from specific authorities (Saladino, Mesue, Antidotarium Nicolai), not blanket-rule substitutions; blanket rules conflate orthographic variation with Latin declension and produce phantom forms type: feedback [Private session identifier retained in custody] --- Ed 2026-04-29 correction during Phase B+: When I built `orthographic_variant_generator.py` to expand HAGEVA stems for the "extraction recoverable" recovery work, I applied blanket substitution rules: - Every `y` could become `i` or `u` - Every `dia` could become `dya` or `dyak` - Every `-os` could become `-us` / `-um` / `-on` Ed's correction: **"not blanket rules"**. ## What's wrong with blanket rules 1. **Blanket y→u produces phantom forms.** `yera` → `iera` is real (attested variant of Greek ἱερά "sacred"); `yera` → `uera` is NOT — `uera` is a phantom from blanket y/u substitution that doesn't exist in any pharma authority. 2. **Conflates orthographic variation with declension.** `electuar-os` and `electuar-us` are NOT orthographic variants — they're DIFFERENT GRAMMATICAL CASES of the same noun. Treating them as variants generates impossible word forms in context. 3. **Some prefix variants apply only to specific terms.** `dyak-` is a real prefix (e.g., `dyacatholicon`) but ONLY for some compound terms; not all `dia-` words become `dyak-`. ## What the right approach is **Per-stem documented variants drawn from authoritative pharma sources, not blanket-rule generation.** Each variant must be ATTESTED somewhere — either in a known pharma authority (Saladino, Mesue, Antidotarium Nicolai) or in another manuscript witness. For each predicted stem: 1. Document its ATTESTED variants from cited authorities 2. Use ONLY those documented variants in expanded matching 3. Cite the source for each variant This is more work but produces a defensible variant set. Blanket-rule generation produces a quantitatively-bigger but qualitatively-poorer set with lots of false positives. ## Why this matters Generating phantom variants and treating them as legitimate stems would inflate the apparent recovery of Layer-2 signal (the visual ground truth Ed has attested at token level). If `uera` shows up in a corpus, it's not a hit on `yera`; it's a noise hit on a different word. Blanket rules would mistakenly count it as substrate evidence. The honest recovery path: 1. Curate per-stem variant sets from attested authorities 2. Apply interior-substring matching (not blanket-substitution) 3. HTR-quality re-OCR (corrects extraction errors at the source) 4. Token-level visual ground-truth dataset for retrieval evaluation ## How to apply - Don't write generative-rule scripts that blanket-substitute orthographic patterns - When extracting variants, cite the authority (Saladino p.X, Antidotarium Nicolai recipe N, etc.) - If unsure whether a variant is attested, mark it as candidate-not-confirmed - The substrate prefers fewer high-confidence stems over many speculative ones