Pentametron Program Finds Tweets In Iambic Pentameter, Turns Them Into Poetry A program that makes poems from our tweets / With rhyming lines and smooth iambic beats ... Ranjit Bhatnagar wrote a program to find tweets in iambic pentameter and retweet them in rhyming pairs. With NPR's Jacki Lyden, he shares some of the resulting couplets.
NPR logo

Pentametron Reveals Unintended Poetry of Twitter Users

  • Download
  • <iframe src="" width="100%" height="290" frameborder="0" scrolling="no" title="NPR embedded audio player">
  • Transcript
Pentametron Reveals Unintended Poetry of Twitter Users

Pentametron Reveals Unintended Poetry of Twitter Users

  • Download
  • <iframe src="" width="100%" height="290" frameborder="0" scrolling="no" title="NPR embedded audio player">
  • Transcript


Thanks for listening in here, WEEKENDS on ALL THINGS CONSIDERED from NPR News. I'm Jacki Lyden.

On Thursday, Twitter lit up with tweets, of course, about finding love, and then losing it. As they poured in, one program gathered all those tweets up and organized them into something unexpected - poetry. Ranjit Bhatnagar is an artist and the inventor of that program which is called Pentametron. And he joins us from our studios in New York. Welcome, Ranjit Bhatnagar.

RANJIT BHATNAGAR: Thank you very much.

LYDEN: So this is pretty much fun. First of all, tell us what Pentametron is.

BHATNAGAR: Well, Pentametron is a computer program I wrote which just watches Twitter, watches 525 million tweets a day. And it picks out the ones that happen to be in iambic pentameter. And when it finds some of those, it looks for a pair that rhyme, and then it tweets out a couplet.

LYDEN: Whatever made you think of this?

BHATNAGAR: It was two different factors. One is I've been interested in playing around with the idea of poetry. I was kind of inspired by the exquisite corpse games of the surrealist. And on the other hand, I'm a big nerd, and I was looking at the systems that let programmers talk to Twitter. So I saw that Twitter has this way that you can subscribe to receive just an endless waterfall of tweets from them. And I thought, wow, that would be really neat just to find a way to play with that. And what I ended up doing was combining my interest in the surrealist poetry with Twitter's API. And Pentametron came out of that.

LYDEN: So, please, I'm dying to know. Give me an example.

BHATNAGAR: Yes. Well, I looked back through the last day or two of tweets and picked some of my favorites, and here is a couple of couplets: That hesitation right before a kiss, I don't remember ever learning this. I have never had a valentine before, I'm not a little baby anymore.


BHATNAGAR: And then there is this one that I found that's for you: I want to be a news reporter, yo, I never listen to the radio.

LYDEN: I'm kind of thirsty for a valentine, my volume doesn't have a minus sign.


LYDEN: It's a lot of fun. So how does this work? How much poetry does that computer program write every day?

BHATNAGAR: It comes up with about 15 to 20 couplets a day.

LYDEN: Are these certain times of day where you find the volumes greater, that are more fruitful?

BHATNAGAR: I haven't noticed anything about times of day. But I have noticed that during big national events, like the Super Bowl or the Grammys, the volume goes up a lot.

LYDEN: And how about a couple more of these? For example, here's a couplet: I want the other Spanish teacher back. Someone actually said that.


LYDEN: And you've paired it with: Sting ray, a double-sided Scooby snack. Boy, whoever wrote that, I mean, I want to get to know them.


LYDEN: And are there any common phrases that happen to be in iambic pentameter?

BHATNAGAR: Oh, there are so many common phrases that happen to be in iambic pentameter that I have a blacklist in my program because I got tired of hearing some of them. Actually, the very first iambic phrase that Pentametron ever discovered was: I've never been in Twitter jail before. And I didn't know what Twitter jail was. It turns out if you tweet more than about 200 times in the same day, Twitter cuts you off for a day, and that's Twitter jail.

People say I've never in Twitter jail before a lot. So I got finally got tired of seeing Pentametron pick it up, and I blacklisted it. Another example is: I want to see "The Hunger Games" again, which, last year, about this time, "The Hunger Games" was the big new movie and everybody wanted to see "The Hunger Games" again.

LYDEN: Have you been able to analyze this any other way? I mean, are you - do you have any sense of age groups or places in the country or where this information is coming from in anyway? Obviously, it's English, so we know that.

BHATNAGAR: It's in English. And it's hard to tell for sure, but it seems to me that it's probably a pretty random cross-section of everyone on Twitter, which means that I'm exposed to more different kinds of people, more different kinds of language than I would be if I just followed the people I normally follow on Twitter.

LYDEN: It's so democratic, Ranjit. Maybe Pentametron should be, you know, the next poet laureate.

BHATNAGAR: That seems like a good idea to me.

LYDEN: Ranjit Bhatnagar is the creator of the Pentametron Twitter poet. Ranjit, thanks. It was really a lot of fun.

BHATNAGAR: Thank you very much.

Copyright © 2013 NPR. All rights reserved. Visit our website terms of use and permissions pages at for further information.

NPR transcripts are created on a rush deadline by Verb8tm, Inc., an NPR contractor, and produced using a proprietary transcription process developed with NPR. This text may not be in its final form and may be updated or revised in the future. Accuracy and availability may vary. The authoritative record of NPR’s programming is the audio record.