A few of my friends have Twitter horse_ebook style accounts. If you’re not familiar with this, well, it has a Wikipedia entry these days! In short, it’s a semi-famous (in a meme-ish way) bot which posted snippets from Ebooks in an attempt to avoid spam detection on Twitter. It mixed up the sentences of the books in a way that generated a lot of unintentionally funny non sequiturs.
Back to Twitter – My friends have their own versions of this account, and most use something like Mispy’s twitter_ebooks Ruby program. It’s a fun and silly thing to do, and I wanted join in.
The process is simple: Acquire Twitter timeline, and then process it into a Markov chain. Then walk this Markov chain to generate a new Tweet, and post that. Do so on a schedule, so the program can be triggered and run unattended.
Nothing too exciting, but I did learn a bit about writing unit tests using Mocha. My previous projects used my own simple testing suite.