King James Programming: Markov chain trained on the Bible and a comp sci textbook

The book I’m learning Python with (ThinkPython, you can get a free copy on the publisher’s site), have an exercise of this kind. And I’m having quite a bit of fun mixing:

  • The accomplisht cook or, The art & mystery of cookery by Robert May,

and

  • The Kama Sutra of Vatsyayana.

Some crazy extracts :

The best way of making all manner of sweet herbs picked and cleansed, steep them in few and not harsh words, not laughing loudly in their own private rooms.

The following principles are laid down on the ground.

Colouring the teeth, is called high union, while the elephant and the hare make the rest into little cakes as broad as your finger, with some strong broth or gravy only, give them a warm, and broth it: lay Lemon on it, and scum it, and put the fowl on fine sippets. Sometimes you may do of any other way of exciting a woman. Or, he may have formerly given her, with the cream, a quart of good thick cream, and raw eggs, a little ising glass, and being roasted put them in September. Take four stone of pork, and cut it into thin slices; then mince some sweet Herbs and put to it butter, rose-water, and some dissolved musk; bake it and use the same spices as abovesaid, and serve them with bread and flower. 2.

Grated bread, Fennil seed, coriander-seed, cinamon, and sugar.

Otherways.

Beaten butter with lemon in bits like square dice, and salt; mingle all together, then put it in fair water half an inch long, yolks of six eggs with vinegar or grape verjuyce, and four of the clock in the Book of all manner of sweet herbs, sage, spinage, marigold leaves and flowers, white or green wheat, and blew-bottles for blew. To keep Sparagus all the external enjoyments of life, still have recourse to other men.

1 Like