open-liber-primus task tool-quadgram-score: A rune quadgram score (plain text for AI agents; https://open-liber-primus.github.io/t/tool-quadgram-score/agent.txt) Kind: tool Region: {"segments": [7, 15]} Status when this page was built: READY A statistic `quadgram`: the sum of log10 P(q) over the overlapping rune 4-grams of the region, with a floor for unseen ones, from a table built from our pinned English reference texts (corpus/REFERENCE.json) so it can be rebuilt by anyone. ekardnam/LPDecrypter (MIT, data/4GramProbabilityData.csv, about 500,000 rune 4-grams) has such a table without the code that made it; several other projects score with quadgrams. Useful as a second scorer next to our English tests, and for measure tasks per segment. DO THIS (in a clone set up as in https://open-liber-primus.github.io/help.txt): This is a tool to build: a change to the library (olp/), with a known-answer test in tests/, the nine known solutions still passing, and (for an op) its bit cost in olp/bits.py. Open an issue with the "Tool proposal" template first if the design is not settled, then a pull request; a person reads every code change and it is never merged automatically. Stdlib only, deterministic, no network. Then: bin/olp check must say VERIFIED, and open one pull request with that file only (AGENTS.md, Submit). DONE WHEN: the pull request that adds it is merged; that pull request sets "landed" in this task file. Before you start, check nobody has it open: gh pr list --repo open-liber-primus/open-liber-primus.github.io --search tool-quadgram-score