Written 2026-10-15, before ending_test.py was run. What was looked at before writing: finding 769, 66, 68, 354, 30 and 341 notes (read only), the ZL transcription's format and character set, the TP-001 ending scheme in family_expansion.py, and the size and genre mix of the CATMuS Latin lines on disk. No test statistic had been computed.
Do the high-frequency suffixes (y, ey, ol, edy and the rest of the ending set) behave like case endings? An ending of that kind varies within one stem, and the variation tracks the word's position or its neighbour, the way an ending varies with syntax. Finding 66 bounds the method: test ending behaviour, not a pair matrix.
Transcription: ZL transliteration file, updated from EVMT project (ZL, version 2b). Only paragraph text loci are used (locus code starting with P: P, Pb, Pc, Pr, Pt), as in the TP-001 position test. Labels, circular and radial text are out. Tags in angle brackets are removed. Words split on "." and ",". An alternative reading [a:b] takes the first reading. A word containing {, ?, @, * or a digit is dropped as unreadable, and it also breaks neighbour contexts (it counts as an unreadable neighbour, so no pair is formed across it).
Substrate scheme: the 25-term lattice terminal set recorded in finding 30 (TP-001) and used in family_expansion.py, which contains the four suffixes named in 68 (y, ey, ol, edy). The ending is the longest match from that set at the end of the word. The stem is the rest. Terms: aiin aiir ain iin eedy edy eey ody eody chy shy dy ey ar al ol or am y r l s d o e. A word with an empty stem (the word is only an ending) is dropped. A word that ends in none of the terms keeps the empty ending, written "-". Prefix and gallows structure (68, 354) lives inside the stem and is not split further; the ending slot is the object under test.
Robustness variant R2 restricts to the four endings named in 68 (y, ey, ol, edy): words whose ending is one of those four, same stems.
A stem is eligible if, in the paragraph text, at least two distinct endings each occur at least twice with that stem. The test needs at least 30 eligible stems and at least 600 tokens in them. Below that the verdict is PARK as underpowered, with the counts.
For each of three contexts X, the stem-conditioned mutual information between the ending E and X, summed over eligible stems and divided by the token count (bits per token):
I(E;X|stem) = sum over stems of n_stem * [H(E|stem) - H(E|stem,X)] / total n.
The three contexts:
a. Position in the line: first, middle or last word. Lines of one readable word are excluded. b. First letter of the next word, within the line. Letters with a corpus share under 1% pool into "other". The last word of a line has no next word and is excluded. c. Ending of the previous word (the agreement test), within the line, under the same ending scheme (the previous word's empty ending is "-"; its stem may be empty). The first word of a line is excluded.
Plug-in mutual information is biased upward at small counts. The null carries the same bias, so the p-value is valid and the effect size is the observed value minus the null mean (bias-corrected, bits per token), reported alongside the fraction of H(E|stem) it represents and a z score.
Shuffle the endings within each stem across that stem's tokens, which holds each stem's ending distribution and destroys every link between ending and context. 2000 shuffles for the primary run (floor asked: 1000). p = (hits + 1) / (N + 1), hits counting shuffles at or above the observed value, one-sided.
Robustness (pre-registered, 1000 shuffles each): R1. Shuffle endings within stem and page (folio), so a topic or section difference between pages cannot make the ending track the context. TP-001 found endings track illustration section (p 0.0005) and not neighbours, so R1 is the live threat to a primary pass. R2. The four-ending variant above. R3. For (c) and (b), drop any token that sits in an adjacent identical pair (same word twice in a row), since doubling copies the ending.
PASS: p < 0.01 under the primary null on at least one of (a), (b), (c), with the effect size (bits per token and share of H(E|stem)) reported. Holm-adjusted p values are also reported for the three tests. The robustness runs do not change the verdict on the stated rule; they are reported beside it and a primary pass that fails R1 is described as such. Otherwise PARK with the numbers. Never Falsified (rule of 2026-10-13 23:19 CT).
Latin corpus on disk: the CATMuS Latin lines at ../../../../provenance/source-f7d004a4acf00a2d.html (45,749 manuscript lines, abbreviated medieval Latin, HTR transcriptions). The control is the Treatises genre, centuries 13 to 15, line types DefaultLine and default. Text is lowercased, combining abbreviation marks are stripped (so an abbreviated ending such as um with a tilde reads as u, which keeps the abbreviation condition), long s and ligature letters are folded, u/v and i/j are merged, punctuation is removed, and words containing anything other than a-z are dropped. Words split on spaces; lines are manuscript lines.
Latin endings (longest match): orum arum ibus ebus ntur ris tis mus mini nt tur re is us um am em os as es ae ii i a e o u t m s. Same eligibility rule and minimum, same three contexts, same null, same 2000 shuffles. If the Latin set is larger than the VMS eligible set, the lines are subsampled (fixed seed 20261015) to the VMS paragraph-text token count and the full-corpus result is reported beside it.
What the control means. Latin is a language with case and verb endings, so the instrument should detect ending-to-context dependence there (a positive control). If the Latin control does not pass, the instrument cannot see case-ending behaviour in this form and a VMS non-pass is uninformative about case endings; that is stated in the report. If Latin passes and VMS does not, the VMS endings do not behave like Latin case endings at these three contexts.
Not a control: no stem-by-stem shuffle substitute was needed, since a Latin corpus exists; the within-stem shuffle is the null of both runs.
Context (b) compares an ending's last glyph with the next word's first glyph, so glyph-adjacency habits (scribal or shorthand) can produce a pass without syntax. A (b) pass alone is reported as adjacency-or-syntax, not as case behaviour.
# TEST.md: ending behaviour test for Parked finding 769 (N7, word grammar) Written 2026-10-15, before ending_test.py was run. What was looked at before writing: finding 769, 66, 68, 354, 30 and 341 notes (read only), the ZL transcription's format and character set, the TP-001 ending scheme in family_expansion.py, and the size and genre mix of the CATMuS Latin lines on disk. No test statistic had been computed. ## The question Do the high-frequency suffixes (y, ey, ol, edy and the rest of the ending set) behave like case endings? An ending of that kind varies within one stem, and the variation tracks the word's position or its neighbour, the way an ending varies with syntax. Finding 66 bounds the method: test ending behaviour, not a pair matrix. ## Data Transcription: ../../../../../../assets/tools/source-items/c7ffff9e1f3ecbec174e234c.txt (ZL, version 2b). Only paragraph text loci are used (locus code starting with P: P, Pb, Pc, Pr, Pt), as in the TP-001 position test. Labels, circular and radial text are out. Tags in angle brackets are removed. Words split on "." and ",". An alternative reading [a:b] takes the first reading. A word containing {, ?, @, * or a digit is dropped as unreadable, and it also breaks neighbour contexts (it counts as an unreadable neighbour, so no pair is formed across it). ## How stems are split from endings Substrate scheme: the 25-term lattice terminal set recorded in finding 30 (TP-001) and used in family_expansion.py, which contains the four suffixes named in 68 (y, ey, ol, edy). The ending is the longest match from that set at the end of the word. The stem is the rest. Terms: aiin aiir ain iin eedy edy eey ody eody chy shy dy ey ar al ol or am y r l s d o e. A word with an empty stem (the word is only an ending) is dropped. A word that ends in none of the terms keeps the empty ending, written "-". Prefix and gallows structure (68, 354) lives inside the stem and is not split further; the ending slot is the object under test. Robustness variant R2 restricts to the four endings named in 68 (y, ey, ol, edy): words whose ending is one of those four, same stems. ## Eligible stems and minimum A stem is eligible if, in the paragraph text, at least two distinct endings each occur at least twice with that stem. The test needs at least 30 eligible stems and at least 600 tokens in them. Below that the verdict is PARK as underpowered, with the counts. ## Statistic For each of three contexts X, the stem-conditioned mutual information between the ending E and X, summed over eligible stems and divided by the token count (bits per token): I(E;X|stem) = sum over stems of n_stem * [H(E|stem) - H(E|stem,X)] / total n. The three contexts: a. Position in the line: first, middle or last word. Lines of one readable word are excluded. b. First letter of the next word, within the line. Letters with a corpus share under 1% pool into "other". The last word of a line has no next word and is excluded. c. Ending of the previous word (the agreement test), within the line, under the same ending scheme (the previous word's empty ending is "-"; its stem may be empty). The first word of a line is excluded. Plug-in mutual information is biased upward at small counts. The null carries the same bias, so the p-value is valid and the effect size is the observed value minus the null mean (bias-corrected, bits per token), reported alongside the fraction of H(E|stem) it represents and a z score. ## Null Shuffle the endings within each stem across that stem's tokens, which holds each stem's ending distribution and destroys every link between ending and context. 2000 shuffles for the primary run (floor asked: 1000). p = (hits + 1) / (N + 1), hits counting shuffles at or above the observed value, one-sided. Robustness (pre-registered, 1000 shuffles each): R1. Shuffle endings within stem and page (folio), so a topic or section difference between pages cannot make the ending track the context. TP-001 found endings track illustration section (p 0.0005) and not neighbours, so R1 is the live threat to a primary pass. R2. The four-ending variant above. R3. For (c) and (b), drop any token that sits in an adjacent identical pair (same word twice in a row), since doubling copies the ending. ## PASS threshold PASS: p < 0.01 under the primary null on at least one of (a), (b), (c), with the effect size (bits per token and share of H(E|stem)) reported. Holm-adjusted p values are also reported for the three tests. The robustness runs do not change the verdict on the stated rule; they are reported beside it and a primary pass that fails R1 is described as such. Otherwise PARK with the numbers. Never Falsified (rule of 2026-10-13 23:19 CT). ## Control Latin corpus on disk: the CATMuS Latin lines at ../../../../provenance/source-f7d004a4acf00a2d.html (45,749 manuscript lines, abbreviated medieval Latin, HTR transcriptions). The control is the Treatises genre, centuries 13 to 15, line types DefaultLine and default. Text is lowercased, combining abbreviation marks are stripped (so an abbreviated ending such as um with a tilde reads as u, which keeps the abbreviation condition), long s and ligature letters are folded, u/v and i/j are merged, punctuation is removed, and words containing anything other than a-z are dropped. Words split on spaces; lines are manuscript lines. Latin endings (longest match): orum arum ibus ebus ntur ris tis mus mini nt tur re is us um am em os as es ae ii i a e o u t m s. Same eligibility rule and minimum, same three contexts, same null, same 2000 shuffles. If the Latin set is larger than the VMS eligible set, the lines are subsampled (fixed seed 20261015) to the VMS paragraph-text token count and the full-corpus result is reported beside it. What the control means. Latin is a language with case and verb endings, so the instrument should detect ending-to-context dependence there (a positive control). If the Latin control does not pass, the instrument cannot see case-ending behaviour in this form and a VMS non-pass is uninformative about case endings; that is stated in the report. If Latin passes and VMS does not, the VMS endings do not behave like Latin case endings at these three contexts. Not a control: no stem-by-stem shuffle substitute was needed, since a Latin corpus exists; the within-stem shuffle is the null of both runs. ## Caveat fixed in advance Context (b) compares an ending's last glyph with the next word's first glyph, so glyph-adjacency habits (scribal or shorthand) can produce a pass without syntax. A (b) pass alone is reported as adjacency-or-syntax, not as case behaviour.