Unigram baseline
Word frequencies only, no grammar. The floor any grammar model must beat.
reference point
The success metric for this project is generalisation. Every fifth folio is withheld from fitting; models are then asked to predict its words. A grammar that captures something real about the system will be less surprised by pages it has never seen. Whether a reading “sounds like a herbal” plays no part in this score.
held-out results
Lower perplexity is better. Top-1 / top-5 are next-word accuracy over a fixed sample of held-out positions against the full training vocabulary.
Word frequencies only, no grammar. The floor any grammar model must beat.
reference point
Previous word only, interpolated with unigram. Raw local sequencing, no categories.
8.2% lower perplexity than the no-grammar baseline
P(class | previous class) × P(word | class) using the induced categories.
-12.2% lower perplexity than the no-grammar baseline
Grammar model interpolated with lexical bigrams. This is the model behind the translations.
11.0% lower perplexity than the no-grammar baseline
interpretation
protocol
artifact provenance
Every figure on this page is read from a single precomputed artifact. Nothing is fitted in the browser, so the same artifact always yields the same output.
To reproduce: run bun scripts/precompute-analysis.ts against a corpus with the same hash and these settings; the artifact, and therefore every reading and score shown here, will be byte-identical.