A plausibility check from word counts in public Greek corpora; not an edition; no scholar has reviewed it. It knows which word forms occur and which follow each other, nothing more. It runs in your browser, and what you paste is not sent anywhere.
Loading the word counts (6.6 MB, once)…
What it does
- Word division. Papyri are written in scriptio continua, without spaces. The page tries every way of cutting the line into word forms that occur in the counted texts, and scores each cut by how often the words occur and how often each follows the one before it (a bigram language model with absolute discounting).
- Corrections, from a small declared list. It may read a letter as another one of the same shape class, the confusions a handwriting model typically makes: Α/Λ/Δ, Ε/Θ/Ο/Σ (lunate sigma, C), Η/Ν and Ι/Τ. It may restore at most one lost letter per word. Each correction costs: about 3% per letter for a confusion, 1% for a lost letter. Any other misreading it cannot undo.
- Ancient spellings. Scribes spelled by ear: ει for ι, ο for ω, ν for γ before κ, ο for οι before a vowel (ποητής). A word spelled like that is not an error. When a word is not attested as written but one of 253 such spellings turns it into an attested word, the page keeps it as written and names the spelling. The spellings and how often each occurs were learned from the editors' own marks in about 83,000 papyri on papyri.info, where every regularized spelling is recorded beside what the scribe wrote. Only sound changes are used, not grammar or abbreviations; a word that is attested as written is read as written.
- The writer's habits. With several lines, the page reads the whole text twice. A spelling this text uses far more often than the papyri do (more than chance would give, at 1 in 1,000) is taken as this writer's habit and accepted more readily on the second reading. The habits are listed above the lines.
- Unknown stretches. Letters that no attested form explains are left as written and marked unknown.
- Flags. Each word of the best cut is also checked as written. It is flagged when it is unattested and no common spelling explains it, or when a reading through the same channel fits its neighbours better by more than 4 nats (about 55 times more likely). A flag says when the proposed correction is also a known spelling of the word, and when an unattested word has a regular ending on an attested stem, so that it may be a rare form rather than an error.
What it is not
- Not an edition and not a reading of the papyrus: it never sees the image, only the letters you give it.
- Not reviewed by a papyrologist or any scholar. Its preferences are word frequencies, so it can "correct" a rare but right form toward a common neighbour, and it does not know grammar, metre, the document type or the hand.
- Its word counts come from literary texts (and Galen), not from documentary papyri. The spellings now come from papyri, but the vocabulary of documents (names, measures, formulae) is still under-represented, and a word with two misspellings is not recovered (one spelling per word).
How well it does
Tested on 480 lines of 20 to 40 letters from 12 works that were left out of the counts, with HTR-like errors injected at random. The error rates are assumptions, not measured HTR rates. "Line right" means the whole line's words came out exactly. These are the numbers for the trimmed word counts this page uses, with the spelling rules; the full counts score at most 0.021 better on any of them. Without the spelling rules the three rows are 0.812, 0.446 and 0.185 for the first reading.
| errors injected | word breaks right (F1) | line right, first reading | line right, in first five |
|---|---|---|---|
| none | 0.977 | 0.810 | 0.877 |
| light (4.8% of letters) | 0.930 | 0.448 | 0.521 |
| heavy (12.4% of letters) | 0.868 | 0.192 | 0.273 |
On the noisy lines whose errors are all of the kinds it can undo, the first reading is right for 0.725 (light) and 0.589 (heavy) of lines, and the first five contain it for 0.841 and 0.828.
The spellings, tested on papyri they were not learned from (one document in ten, set aside by a seeded rule):
| test | without the spelling rules | with them |
|---|---|---|
| a misspelled word on its own: the first reading is the editor's form (4,183 words) | 0.230 | 0.558 |
| five words as written, run together: word breaks right (F1, 600 stretches) | 0.805 | 0.833 |
| same: misspelled words read as the editor's form (703 words) | 0.102 | 0.243 |
Of the scribal slips the editors corrected that are unattested as written, 12% would be taken for a spelling. On Philodemus (Herculaneum papyri), the spellings and line-end repairs doubled the slips among the 30 strongest flags, from 5 to 10, in a reading by a non-specialist (details).
Sources and licences
Word and word-pair counts: the Greek texts of First1KGreek (Open Greek and Latin project), CC BY-SA 4.0, the corpus used across this project, including its Galen texts. 21.6 million words, after 19 works were held out for testing. The page uses 313,788 forms seen at least twice and 1.78 million word pairs seen at least twice; that table (model.bin) is derived from those texts and shared under CC BY-SA 4.0. The scorer is plain counting and five hand-set constants; nothing is trained. Code: MIT. Language model: interpolated absolute discounting (Ney, Essen and Kneser 1994).
Spellings: the regularizations recorded by the editors of the Duke Databank of Documentary Papyri and the Digital Corpus of Literary Papyri (papyri.info, idp.data), CC BY 3.0. The 253 rules and their rates (spelling_rules.json) are derived from that data and shared under CC BY 3.0, with credit to papyri.info and its editors.
The engine is about 220 KB of WebAssembly, with the spelling rules built in, and the counts are 6.6 MB (about 3.5 MB as sent). After the first visit it works offline.