The notes — Markov’s count of vowels in Pushkin, Shannon’s made-up English, and the chain under today’s language models

The man who counted Pushkin

exhibit one hundred and thirty-four The notes
Published 2026-12-04 (UTC)
A small (human) team and a fleet of AI agents.

In the winter of 1913 a mathematician in St Petersburg read a paper about 20,000 letters from the opening chapters of a novel in verse. He had sorted every one of them into vowel or consonant, as an example, his title says, illustrating how events can be linked in a chain. A generation later an engineer at Bell Labs used the same kind of chain to make text instead of measuring it, and the language models of today are a very large descendant of that idea. We ran the 1913 count again with a script. This is also the story of a paper trail that is not there.

ask about this page → assistant.strata2signal.com · in beta, still being tested

the short version

In 1913 A. A. Markov took 20,000 letters of Pushkin's "Eugene Onegin", beginning at the first line of chapter 1, and counted how often a vowel follows a vowel (about 13 times in 100) and how often a vowel follows a consonant (about 66 times in 100). It was his worked example of what are now called Markov chains: events whose chances depend on what came just before. Our script, run on a public text of the novel under the rules his printed samples and tables imply, counts 8,637 vowels where he counted 8,638. In July 1948 Claude Shannon printed six strings of made-up English that look more like English at each step, some of them made by drawing each letter or word according to what came just before, and called such processes "Markoff processes". Language models work with the same kind of dependence, the chance of what comes next given what came before, with thousands of tokens of context where Markov had one letter, or two. But among the research papers we read on the road from 1913 to today, none cites the count of "Onegin", and nothing we read shows that Shannon knew of it.

4,203 words, about 19 minutes to read.

The summary is this page’s own; what was dropped, and why, is in this page’s receipt file.

If you're new here: strata→signal is a small workshop that runs its own machines and writes up what it finds. This page reads, and counts once. Its dates and quotations are from the papers, books and pages listed under Sources, all read on 2026-11-30 (UTC). Translations from Russian are ours unless the page names whose English it is; German and French are given in our own words. Where a claim is a historian's reading and not a document's own words, we say whose it is. A token is a word or a piece of one. Our guide to how a model picks its next token is Temperature, top-k and top-p, in plain words.

A paper about 20,000 letters

The Academy's bulletin prints the day: 23 January 1913. Russia still kept the old calendar, so in most of Europe it was 5 February. At a session of the Physico-Mathematical Department of the Imperial Academy of Sciences, Andrei Andreevich Markov presented a paper that the bulletin printed that winter on ten pages. Its title, as its English translators give it, is "An Example of Statistical Investigation of the Text Eugene Onegin Concerning the Connection of Samples in Chains". The Russian says a little more plainly what the example is for: it is one "illustrating" how trials link into a chain.

Markov was 56. He was born in Ryazan in 1856, had been a full member of the Academy since 1896, and had retired from his chair at St Petersburg University in 1905; the records differ on how long he went on lecturing there.

His material was Pushkin's novel in verse. He took, in his words, "20,000 Russian letters, not counting ъ and ь": the whole first chapter and sixteen stanzas of the second. The two letters he left out are the hard and soft signs, which make no sound of their own. He printed the first two hundred letters as a sample, and the first hundred are the first lines of chapter 1 run together: «мой дядя самых честных правил когда не в шутку занемог…», and after it, in brackets, "42 vowels".

What he counted

He cut the 20,000 letters into 200 runs of 100 and wrote each run as a square, ten letters by ten, keeping their order. He counted the vowels in each column of each square and added the columns in pairs. The results fill forty small tables in the paper. By Brian Hayes's account he did it all with pencil and paper.

Three numbers stand at the centre of the paper.

vowels among the 20,000 letters           8,638          0.432
a vowel right after a vowel               1,104 / 8,638  = 0.128
a vowel right after a consonant           7,534 / 11,362 = 0.663

In Russian, as he counted it, a letter is a vowel a little over four times in ten. But the letter before it changes the odds a great deal. After a vowel, the next letter is a vowel about 13 times in 100. After a consonant, about 66 times in 100, five times as often. Each letter leans on its neighbour.

For the pairs of consonants he spared himself. "The tiring direct count", he wrote, can be replaced, and he got the number by subtraction.

The paper also asks whether the leaning shows up where his theory said it should: in how much the count of vowels wobbles from one hundred letters to the next. He measured that wobble on a scale where 1 would mean independent letters, and got 0.208, "about 1/5", which, he wrote, "is beautifully explained by the connectedness of our trials". A text in which vowels and consonants take turns cannot stray far from its average.

Then he put his chains to work. Treating each letter as depending on the one before, his formulas gave 0.3; on the two before, 0.195, and of that he wrote that greater agreement could hardly be asked. Last, he rearranged the same letters so that no two neighbours in the text sat in the same hundred, and the figure rose to 1.18: near 1, as independence would have it.

Why count a poem

The chains were not new in 1913. By the dating of Eugene Seneta and of Markov's biographers, he had been writing about linked trials since a paper of 1906, and the "Onegin" paper cites two of his own chain papers by title, which David Link's bibliography dates 1907 and 1911. The count was the worked example.

Why he began on chains at all, we have in his own words, from a letter dated 6 November 1910 to the statistician A. A. Chuprov. Writing of the Moscow mathematician P. A. Nekrasov, he said, as his biographers print the letter in English: "he brings out sharply his delusion, shared, I believe, by many, that independence is a necessary condition for the law of large numbers. This circumstance prompted me to explain, in a series of articles", that it is not. The law of large numbers is the theorem that averages settle down. Markov's chains were his proof that they can settle down even when each event leans on the last.

Historians have read more into it. Brian Hayes sets Nekrasov's claim, and so the chain papers, against an argument of the day about free will. David Link ties the "Onegin" lecture to the two-hundredth anniversary of Jacob Bernoulli's book on the law of large numbers, which fell in 1913. The documents we could read say less. The paper names no opponent and no anniversary. Markov did propose marking the anniversary, in a letter to Chuprov dated 15 January 1913, a week before the session if both dates are in the old calendar. A letter of the same date, as Link quotes it in English, asks Chuprov whether he had "come across a similar example elsewhere", so the count was done by then. Nothing we read says why he chose Pushkin.

He did not keep to mathematics. In 1902, when the election of the writer Maxim Gorky to the Academy was not confirmed, Markov joined the protest. In 1912, by his university's record, he wrote to the Holy Synod asking to be excommunicated. His biographers say the newspapers called him "Andrew the Furious".

Counting it again

A count made in 1913 can be made again by a script, and a claim that can be checked should be. Ours reads a public text of the novel in the spelling of before 1918, the 1837 edition's text as Russian Wikisource holds it, and takes 20,000 letters from the first line of chapter 1.

The paper states two rules: Russian letters, and no ъ or ь. The rest it shows without saying. Each hundred of its printed sample, set with gaps between the words, holds exactly 100 letters, so spaces and punctuation are not counted. Its counts of 42 and 46 vowels in the first two hundreds come out only if й, the short i that English writes as y, is counted as a vowel, and the old letter ѣ as well. And his tables can be matched only if the few words Pushkin wrote in Latin letters are left out. Those three rules are ours, read off his numbers.

What is countedMarkov, 1913Our script, 1837 text
Vowels in 20,000 letters8,6388,637
A vowel right after a vowel, pairs1,1041,105
Two consonants in a row, pairs3,8273,830
Chance of a vowel0.4320.432
Chance of a vowel after a vowel0.1280.128
Chance of a vowel after a consonant0.6630.663
Three vowels in a row115122
Three consonants in a row505535

The first 200 letters of the public text are his printed sample, letter for letter. For the first 3,500 letters our column counts equal his in every cell. His three probabilities come out the same to three places.

After that the two texts drift apart by a few letters, and the script can say where. Markov wrote that his sample fills the first chapter and sixteen stanzas of the second. In the public text the 20,000th letter falls in the seventeenth. Sliding our letters along his printed tables suggests why. His counts run ahead of the 1837 text by seven letters where that text prints three asterisks in place of a name, by about as many again at a second such place nine stanzas on, and by 98 letters in the eighth stanza of chapter 2, where the 1837 text prints rows of dots. The public page's footnotes give the two names, and for the dots six lines, the ninth to the fourteenth of the stanza, which, they say, were absent from every edition of Pushkin's lifetime and were put into the text in 1937 from a manuscript. Five of them hold 97 of the 98 letters; the manuscript's form of the ninth holds the last.

We put those readings back as a test, not as a claim about the book on his desk. Under the test the 20,000th letter is the last letter of the sixteenth stanza, and the consonant pairs come to 3,827, his number exactly. The vowels come to 8,639, one over his count where the plain text was one under, and the vowel pairs to 1,106, one further from his. The wobble moves toward him: on the public text as it stands our figure is 0.172 where he has 0.208, and under the test it is 0.206. In every run it is far below 1, which is his point. Our count suggests that his text had about a hundred letters more in that stanza than the 1837 text prints. Which edition he read, the paper does not say, and we do not know.

Two things in his paper do not come out the same. One figure in his text, a sum of squared deviations printed as 3089.2, comes to 3087.2 when worked again from his own table cells. And his counts of three vowels and of three consonants in a row, which he gives as "by my count", are lower than ours and lower than those of Sergei Logichev's recount of 2013 (122 and 537). All forty of his tables add up, row by column.

Making text instead of measuring it

Markov measured a text. Shannon made one. In July 1948, on one page of Claude Shannon's "A Mathematical Theory of Communication", stand six strings of capital letters:

1. XFOML RXKHRJFFJUJ ZLPWCFWKCYJ
   FFJEYVKCQSGXYD QPAAMKBZAACIBZLHJQD
2. OCRO HLI RGWR NMIELWIS EU LL NBNESEBYA TH EEI
   ALHENHTTPA OOBTTVA NAH BRL
3. ON IE ANTSOUTINYS ARE T INCTORE ST BE S DEAMY
   ACHIN D ILONASIVE TUCOOWE AT TEASONARE FUSO
   TIZIN ANDY TOBE SEACE CTISBE
4. IN NO IST LAT WHEY CRATICT FROURE BIRS GROCID
   PONDENOME OF DEMONSTURES OF THE REPTAGIN IS
   REGOACTIONA OF CRE
5. REPRESENTING AND SPEEDILY IS AN GOOD APT OR
   COME CAN DIFFERENT NATURAL HERE HE THE A IN
   CAME THE TO OF TO EXPERT GRAY COME TO FUR-
   NISHES THE LINE MESSAGE HAD BE THESE.
6. THE HEAD AND IN FRONTAL ATTACK ON AN ENGLISH
   WRITER THAT THE CHARACTER OF THIS POINT IS
   THEREFORE ANOTHER METHOD FOR THE LETTERS
   THAT THE TIME OF WHO EVER TOLD THE PROBLEM
   FOR AN UNEXPECTED

In the first, every letter and the space are equally likely. In the second, each has its English frequency. The third draws each letter according to the one before it, the fourth according to the two before it. The fifth draws whole words by their frequency, the sixth each word according to the word before. "The resemblance to ordinary English text increases quite noticeably at each of the above steps", Shannon wrote, and of ten words in the last string, "attack on an English writer that the character of this", that the run "is not at all unreasonable".

His way of making them was a parlour game. The first two came from a book of random numbers. For the third, "one opens a book at random and selects a letter at random on the page. This letter is recorded. The book is then opened to another page and one reads until this letter is encountered. The succeeding letter is then recorded." Tables of letter pairs existed, he said, "but a simpler equivalent method was used". The book did the counting for him.

The strings are older than the paper. Six strings that match them but for one letter stand in the retyped copy we read of a memorandum of his on cryptography dated 1 September 1945.

And he named the idea. "Stochastic processes of the type described above are known mathematically as discrete Markoff processes and have been extensively studied in the literature." The footnote sends the reader to a French book of 1938 by Maurice Fréchet. Neither part of the 1948 paper cites any work of Markov's own, and "Onegin" is not in it. In 1951 Shannon turned the game around and had a person guess a text letter by letter; from such guesses he put the information in a letter of English, counting the space as a letter and for a reader who has seen about a hundred letters before it, between 0.6 and 1.3 bits. (The bit turns up again on our page It’s Not a Metaphor, which is about compression.)

From a table to a network

A table of what follows what turned out to be useful to machines that listen. By the account of Frederick Jelinek, who led it, IBM's speech-recognition group started in early 1972 and worked at first on an artificial grammar. "In 1978 (or so), we thought it was time to abandon artificial grammars", he wrote, and: "at John Cocke’s suggestion we decided to model English by trigrams", which give the chance of a word from the two words before it. A standard textbook says a group at Carnegie Mellon used the same kind of model independently, and it cites papers of 1975 for both groups, earlier than Jelinek's own date for trigrams of English.

For the simplest case, one word of context, that textbook uses Markov's name: "The assumption that the probability of a word depends only on the previous word is called a Markov assumption."

The trouble with a table is its size. Every extra word of context multiplies the rows, and most rows are never seen in any text. In 2003 Yoshua Bengio and three colleagues, who say themselves that using a neural network for the job was not new, trained one at scale and tested it against trigram models. Early in their paper the dependence is stated with nothing cut off: "A statistical model of language can be represented by the conditional probability of the next word given all the previous ones". Their network looked back between two and five words.

The models of today lengthen the look back. The first GPT paper, in 2018, writes its goal as the probability of each token given the k tokens before it, "where k is the size of the context window", and trained on runs of 512 tokens. Its successor took 1,024, the next 2,048, and the largest model of a 2024 family states "up to 128K tokens".

Is a language model a Markov chain?

In the strict sense, with a fixed window, yes, and Shannon said how in 1948: "If a trigram example were constructed there would be at most n² states corresponding to the possible pairs of letters preceding the one being chosen." The state is whatever the next choice is allowed to depend on. A 2024 preprint proves the same for a language model with a vocabulary of T tokens and a window of K: it is a Markov chain whose state is the whole window, and the number of states is of the order of T to the power K.

That number is why the statement, though true, tells you little. Markov's table had two rows, after a vowel and after a consonant, and 20,000 letters filled both many times over. A table for a window of a thousand tokens would have more rows than there are texts to fill them. A network does not hold the table. In the statistician Cosma Shalizi's careful words, today's models "are finite-order Markov models" because of their "hard-coded maximum context length", but the network "is doing some sort of complicated implicit smoothing across contexts". In ours: it can give sensible odds after a run of words it has never met, by leaning on runs like it, where a plain table of counts has nothing to say.

So the kind of dependence is the one Markov measured: what stands next leans on what stood before. Nearly everything about how a model works that dependence out is new.

The trail that is not there

It would be tidy to draw a line of citations from the count of "Onegin" to the models of today. We looked for one.

Work on the pathWhat it cites
Markov, 1913Two of his own chain papers, and his own textbook
Shannon, 1948Fréchet's book of 1938; no work of Markov's
A paper from IBM's group, 1983Shannon's guessing paper of 1951, by the list of references its publisher has on file; not the strings of 1948
Bengio and colleagues, 2003The IBM group's work of 1980
The second GPT paper, 2019Bengio and colleagues, and the IBM work of 1980

The idea runs the whole way. The paper trail does not: none of the research papers we read on that path cites the count of "Onegin". A standard textbook of the field does cite it, and so do the essayists and historians who write about the count itself.

The count was not hidden. George Pólya, reviewing for a German journal a French supplement that Markov wrote for the anniversary, reported that its results are illustrated by statistics on the first 20,000 letters of Pushkin's novel. But the paper itself was not published in English until 2006.

The chains got their name without him. In a paper in Mathematische Annalen, dated 1926 by the review journal of the day and 1927 by its publisher's record, Sergei Bernstein wrote of "chaînes de A. Markoff". The historian Bernard Bru calls that a discreet attempt and says the phrase seems to have caught on from 1929. Markov had died in Petrograd in July 1922.

What this cannot say

  • Why Pushkin. Nothing we read gives Markov's reason for choosing "Onegin", or says which edition he counted from.
  • That he counted it to win an argument. His own words tie the chain papers to Nekrasov's claim. No document we read gives that argument, or the anniversary he had proposed days before, as the reason for the count.
  • That Shannon knew of the count. He named Markoff processes and cited Fréchet. We found no source that shows he had read, or heard of, the paper of 1913. Fréchet's book we did not read, so whether it mentions the count we cannot say.
  • Any first. We do not say Markov was the first to count a text, that Shannon was the first to make text from a chain, or who first wrote "Markov chain". David Link does call Shannon's the first use of the method to make text and not to analyse it; that is his reading.
  • More than our script on public texts. The page shows the count of one public text; the script also counted a modern-spelling one (8,636 vowels). Three of its rules are read off Markov's printed numbers, and a few choices of our own stand behind those (how to class three rare old letters, how to mend a few words printed in mixed alphabets).
  • What we could not read. Markov's paper of 1906, the 1913 edition of his textbook, two of the IBM papers and Shannon's 1945 memorandum in the original were out of our reach. For the 1906 paper and the letters to Chuprov we rely on the historians who quote them.

Who ran this, and thanks

Thanks to Math-Net.Ru and the Internet Archive, whose scans of the Academy's bulletin of 1913 let us read Markov's tables cell by cell; to the volunteers of Russian Wikisource for the texts of the novel; to David Link and his fellow translators, whose English version of the paper and whose histories opened the subject; and to Brian Hayes, whose essay tells the story well. We read Shannon's pages as page images in the Internet Archive's collection of the Bell System Technical Journal, not from their text layer. A small human team asked for this page; AI agents read the sources, wrote and ran the counting script, tried to refute one another's readings and drafted it.

Sources

Every source below was read on 2026-11-30 (UTC).

  • A. A. Markov, "Примѣръ статистическаго изслѣдованія надъ текстомъ „Евгенія Онѣгина“ иллюстрирующій связь испытаній въ цѣпь" (the title as page 153 prints it), Izvestiya of the Imperial Academy of Sciences, series VI, vol. 7, no. 3 (1913), pp. 153 to 162: https://www.mathnet.ru/rus/im6612 ; the volume's scan: https://archive.org/details/izviestiiaimpera671111913impe
  • A. A. Markov, "An Example of Statistical Investigation of the Text Eugene Onegin Concerning the Connection of Samples in Chains", translated into German by A. Y. Nitussov, L. Voropai and D. Link and into English by G. Custance and D. Link, Science in Context 19 (4), 2006, pp. 591 to 600: https://doi.org/10.1017/S0269889706001074
  • D. Link, "Chains to the West: Markov's Theory of Connected Events and Its Transmission to Western Europe", Science in Context 19 (4), 2006, pp. 561 to 589: https://doi.org/10.1017/S0269889706001062 ; "Traces of the Mouth: Andrei Andreyevich Markov's Mathematization of Writing", History of Science 44, 2006, as its author posts it: https://alpha60.de/research/markov/DavidLink_TracesOfTheMouth_2006.pdf
  • E. Seneta, "Markov and the creation of Markov chains", 2006, read in its author's own copy on the University of Sydney's site, which gave a server error on 2026-12-02 and 2026-12-03 (UTC), so no address is given here; "A Tricentenary history of the Law of Large Numbers", 2013: https://arxiv.org/pdf/1309.6488
  • G. P. Basharin, A. N. Langville and V. A. Naumov, "The life and work of A. A. Markov", Linear Algebra and its Applications 386, 2004, pp. 3 to 26, as an author posts it: https://langvillea.people.charleston.edu/MarkovReprint.pdf
  • B. Hayes, "First Links in the Markov Chain", American Scientist 101 (2), 2013, pp. 92 to 97: https://www.americanscientist.org/sites/americanscientist.org/files/201321152149545-2013-03Hayes.pdf
  • Russian Academy of Sciences, its chronicle of anniversaries for 2006, entry for A. A. Markov: https://www.ras.ru/viewnumbereddoc.aspx?id=090d6c8c-5f1b-47c7-a2b8-08170bb2267d ; St Petersburg University, its dictionary of professors, entry for Markov: https://bioslovhist.spbu.ru/university/markov-andrey-andreyevich
  • G. Pólya, review JFM 45.1262.01, Jahrbuch über die Fortschritte der Mathematik: https://zbmath.org/2619319
  • C. Boehm, review JFM 52.0517.03 of Bernstein's paper, in the same Jahrbuch: https://zbmath.org/2587176
  • S. Bernstein, "Sur l'extension du théorème limite du calcul des probabilités aux sommes de quantités dépendantes", Mathematische Annalen 97, pp. 1 to 59: https://doi.org/10.1007/BF01447859 ; B. Bru, "Souvenirs de Bologne", Journal de la Société française de statistique 144 (1-2), 2003, pp. 135 to 226: https://www.numdam.org/item/JSFS_2003__144_1-2_135_0.pdf
  • Russian Wikisource, "Евгеній Онѣгинъ", the 1837 text in the old spelling, chapters 1 and 2 at fixed revisions: https://ru.wikisource.org/w/index.php?oldid=5064711 and https://ru.wikisource.org/w/index.php?oldid=5064705 ; the modern-spelling text, chapters 1 and 2: https://ru.wikisource.org/w/index.php?oldid=5059920 and https://ru.wikisource.org/w/index.php?oldid=5692132
  • S. Logichev, «К 100-летней годовщине одного замечательного исследования», Russian Virtual Library, February 2013: https://rvb.ru/soft/articles/eonegin_1913.htm
  • C. E. Shannon, "A Mathematical Theory of Communication", The Bell System Technical Journal 27 (3), July 1948, pp. 379 to 423, and 27 (4), October 1948, pp. 623 to 656: https://doi.org/10.1002/j.1538-7305.1948.tb01338.x and https://doi.org/10.1002/j.1538-7305.1948.tb00917.x ; read as page images in the Internet Archive's collection of the journal, which carries a note on the posting of the whole run signed by Bell Labs' chief scientist and states no licence: https://archive.org/details/bstj27-3-379 and https://archive.org/details/bstj27-4-623
  • C. E. Shannon, "Prediction and Entropy of Printed English", The Bell System Technical Journal 30 (1), January 1951, pp. 50 to 64: https://doi.org/10.1002/j.1538-7305.1951.tb01366.x ; read in the same collection: https://archive.org/details/bstj30-1-50
  • C. E. Shannon, "A Mathematical Theory of Cryptography", memorandum of 1 September 1945, in a retyped transcription: https://www.iacr.org/museum/shannon/shannon45.pdf
  • F. Jelinek, "The Dawn of Statistical ASR and MT", Computational Linguistics 35 (4), 2009, pp. 483 to 494: https://aclanthology.org/J09-4004.pdf
  • L. R. Bahl, F. Jelinek and R. L. Mercer, "A Maximum Likelihood Approach to Continuous Speech Recognition", IEEE Transactions on Pattern Analysis and Machine Intelligence 5 (2), 1983, pp. 179 to 190, by its record and deposited reference list: https://doi.org/10.1109/TPAMI.1983.4767370
  • D. Jurafsky and J. H. Martin, Speech and Language Processing, third edition, draft of 19 August 2026, chapter 3: https://web.stanford.edu/~jurafsky/slp3/3.pdf
  • Y. Bengio, R. Ducharme, P. Vincent and C. Jauvin, "A Neural Probabilistic Language Model", Journal of Machine Learning Research 3, 2003, pp. 1137 to 1155: https://www.jmlr.org/papers/v3/bengio03a.html
  • A. Radford and others, "Improving Language Understanding by Generative Pre-Training", 2018: https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf ; "Language Models are Unsupervised Multitask Learners", 2019: https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf
  • T. B. Brown and others, "Language Models are Few-Shot Learners", 2020: https://arxiv.org/abs/2005.14165 ; A. Dubey and others, "The Llama 3 Herd of Models", 2024: https://arxiv.org/abs/2407.21783
  • O. Zekri and others, "Large Language Models as Markov Chains", a preprint, 2024: https://arxiv.org/abs/2410.02724
  • C. R. Shalizi, notebook page on attention and transformers: https://bactra.org/notebooks/nn-attention-and-transformers.html
  • This workshop's own pages, linked above: Temperature, top-k and top-p, in plain words; It's Not a Metaphor.

Corrections and later readings will be added below, each dated (UTC), saying in plain words what they show.

If something here helped you, or you use our research or our data kits in your own work, please link back to this page.

elsewhere in the workshop

a strata→signal property · hello@strata2signal.com · say hello