Dated research context; this is a retained research note, not an independent manuscript witness.
Public source edition. Original dates, research statuses, numerical results and stated limits belong to this source. Any private material is identified by a custody notice in the text.
Dated research context; this is a retained research note, not an independent manuscript witness.
name: Variant filtering needs collocation-divergence check, not just attestation + pharma-window description: 2026-04-29 — v2 pharma-window filter still passed Latin function words; v3 adds neighbor-distribution cosine test type: feedback [Private session identifier retained in custody]
For attested-variant curation in HAGEVA-style pipelines, three filters stack:
- v1 attestation — variant must appear in corridor authority OCR (Saladino / Montagnana / Pal.lat.1268 / Pal.lat.1221 / Conciliator). Necessary, not sufficient.
- v2 pharma-context window — variant must co-occur with pharma anchors (recipe / electuari / drachma / antidot / aqua / decoctio / etc.) within ±20 tokens, ≥2 hits. Drops some phantoms but still passes Latin function words that happen to live in pharma-dense text (
te,ter,tum,met,vero). - v3 collocation-divergence — for each (original, variant) pair, compute cosine similarity between left+right neighbor bags over the corpus. A genuine orthographic variant shares neighbor distribution with its original; a phantom function word does not. Threshold cosine ≥ 0.15 with ≥5 neighbor observations.
Why: Ed 2026-04-29 "doi does not = verified" + "not blanket rules" — published reference is necessary not sufficient, attestation is necessary not sufficient, even pharma-context co-occurrence is necessary not sufficient. Substrate must independently check via mechanism-appropriate test. v2 left uero (33 hits) passing as variant of yero because conjunction vero lives next to pharma terms; v3 dropped it (cosine 0.073).
How to apply: When generating variants for any operator-linked stem, run all three filters in order. Document drops with cosine + observation count so future audits can tune the threshold per operator. Borderline-survivor cases (cosine 0.15-0.30) deserve manual spot-check — these are "context-similar but not identical" candidates.
Pipeline files:
- v1: ~/research collection/tools/curate_attested_stem_variants.py
- v2: ~/research collection/tools/curate_attested_variants_pharma_filter.py
- v3: ~/research collection/tools/curate_attested_variants_collocation_filter.py
- v3 output: ~/research collection/tools/hageva_attested_variants_collocation_filtered_2026-04-29.json
v3 cohort: 207 attested-AND-pharma-AND-collocation-real variants (down from 455 v0 candidates).
Public source text and line addresses
Dated research context; this is a retained research note, not an independent manuscript witness. --- name: Variant filtering needs collocation-divergence check, not just attestation + pharma-window description: 2026-04-29 — v2 pharma-window filter still passed Latin function words; v3 adds neighbor-distribution cosine test type: feedback [Private session identifier retained in custody] --- For attested-variant curation in HAGEVA-style pipelines, three filters stack: 1. **v1 attestation** — variant must appear in corridor authority OCR (Saladino / Montagnana / Pal.lat.1268 / Pal.lat.1221 / Conciliator). Necessary, not sufficient. 2. **v2 pharma-context window** — variant must co-occur with pharma anchors (recipe / electuari / drachma / antidot / aqua / decoctio / etc.) within ±20 tokens, ≥2 hits. Drops some phantoms but still passes Latin function words that happen to live in pharma-dense text (`te`, `ter`, `tum`, `met`, `vero`). 3. **v3 collocation-divergence** — for each (original, variant) pair, compute cosine similarity between left+right neighbor bags over the corpus. A genuine orthographic variant shares neighbor distribution with its original; a phantom function word does not. Threshold cosine ≥ 0.15 with ≥5 neighbor observations. **Why:** Ed 2026-04-29 "doi does not = verified" + "not blanket rules" — published reference is necessary not sufficient, attestation is necessary not sufficient, even pharma-context co-occurrence is necessary not sufficient. Substrate must independently check via mechanism-appropriate test. v2 left `uero` (33 hits) passing as variant of `yero` because conjunction `vero` lives next to pharma terms; v3 dropped it (cosine 0.073). **How to apply:** When generating variants for any operator-linked stem, run all three filters in order. Document drops with cosine + observation count so future audits can tune the threshold per operator. Borderline-survivor cases (cosine 0.15-0.30) deserve manual spot-check — these are "context-similar but not identical" candidates. Pipeline files: - v1: `~/research collection/tools/curate_attested_stem_variants.py` - v2: `~/research collection/tools/curate_attested_variants_pharma_filter.py` - v3: `~/research collection/tools/curate_attested_variants_collocation_filter.py` - v3 output: `~/research collection/tools/hageva_attested_variants_collocation_filtered_2026-04-29.json` v3 cohort: 207 attested-AND-pharma-AND-collocation-real variants (down from 455 v0 candidates).