1. The Markov chain code
This is a custom implementation of a Markov chain process that I wrote in Perl a few years back because (a) I’m finicky about how my Markoving works and (b) it seemed like a fun thing to write. It’s a content-neutral set of functions — nothing about it is specific to Calvin, or to comic strips. It’s just a bunch of code that will digest an arbitrary collection of text and then burp out new weird sentences when you ask it to.
I’ve made a few small improvements to this code as I’ve revisited it the last few days, but it was feature-complete already.
« Older Burt Shavitz, namesake and co- founder of Burt's... | If it weren't for Edison we'd be watching TV by... Newer »
This thread has been archived and is closed to new comments