Voynich, testedSearch

Solvers, and how to trust one

A solver is a program that tries keys. For a substitution cipher it guesses which cipher symbol stands for which letter, decrypts, and asks a language model how much the result looks like the language. It then changes the guess a little and keeps the change if the score improves. This is called hill-climbing, and it cracks ordinary substitution ciphers in a blink.

Try it: watch a solver work

Start the solver on a real text that has been enciphered with a random substitution. The text under the table is its current guess; watch it turn into readable words. Then try again with gibberish, and a short ciphertext. The score it reaches is in bits per character: lower means more like the language.

Two things to see. A short ciphertext cannot be solved: with too few letters, many keys look equally good. And a ciphertext of gibberish never reaches the score of genuine text. The solver’s score is a measurement, not a verdict: it says how much the best guess looks like language, so it must be compared with what the same method gives on texts with the right answer and on texts with no answer at all.

Calibrate before you believe

Before running the solver on the manuscript we asked three questions about it, using ciphers whose answer we knew.

A planted cipher is decrypted by the solver almost perfectly from about 1,000 characters (substitution) or 5,000 (homophonic, where one letter has several symbols). The manuscript has about 200,000. That is why the failures later are informative: the solver is able to succeed when there is something to find.

Other cipher classes at 120,000 characters
CipherLetters recoveredScore reachedTrue text's score
vigenere15%5.223.23
nullsn/a3.903.23
nomenclatorn/a3.873.23
verbosen/a5.203.23
homophonic98%3.193.23
  1. Can it find a known key? Yes, at the manuscript’s size. On planted Latin ciphers it recovers nearly every letter from about a thousand characters. The manuscript has about 200,000.
  2. Can it tell languages apart? Mostly, and the confusions are between close relatives.
  3. What does it find in text with no message? Almost as good a score as it finds in the manuscript. We built gibberish from the manuscript’s own symbols, with the same letter habits, and ran the solver on that. This is the control that matters.

The manuscript’s letters are so repetitive that any flexible mapping finds language-like patterns in them, including a mapping fitted to gibberish. The result: for almost every language we tried (13 of 14 in the units view), the manuscript scored within 0.15 bits of gibberish, and clearly worse than a genuine text of the language. A true plaintext would have scored like genuine text. Greek is the one outlier, and it is a worse fit than gibberish, not a better one.

Three checks that could have changed the answer