On sale at book places. Learn more.

Make your own @horse_ebooks

Long live @horse_ebooks!

Today, @horse_ebooks sorta died. Long live @horse_ebooks!

I remember playing around with Markov chains back in the day, and thought that it would be fun to see what that looked like when fed all 15,000 of my Tweets.

How do Markov chains work?

They are pretty neat. There are a couple different ways to do them, but the general idea is that they take some corpus of text and keep track of how often various words appear before and after each other. Using some amount of randomness they then construct sentences based on these percentages that have most likely never been put together before, but, in some strange alternate grammatical universe, might have been put together.

The result? Frankensentences that have a bit of the personality of the original text, but often in sort of ridiculous new configurations. Pretty funny (to me at least).

And of course many more.

A couple people asked for how this is done:

So I posted the (relatively disorganized but hopefully comprehensible) code here:

Follow @buster_ebooks here. And let me know if you do something with this. Enjoy!

Added to the Technology and Artificial Intelligence piles.
September 23, 2013

Buster Benson (@buster) is a writer and builder of things. If you're new here, check the about page or see my entire life on a page.

SUBSCRIBE TO MY NEWSLETTER

Join my newsletter to get updates about my book and analysis of bias and unproductive disagreements in the wild. Browse the archive first, to get a feel.

Subscribe
SEND ME A JOKE

I'm not great at email but I'm not the worst either. My DMs are open on Twitter as well.