Hacker News new | ask | show | jobs
by briandrupieski 3412 days ago
In the same vein, I wrote a Twitter bot that finds and retweets pairs of tweets that form anagrams:

https://twitter.com/anagrammatweest

It's a clone of anagramatron, the original anagram Twitter bot that went inactive almost a year ago.

I use a combination of Damerau–Levenshtein distance, longest common sequence, length, number of English words, and number of different words to score and rank anagrams to figure out which ones to retweet.

3 comments

Amazing how apt some of them seem, it looks human-curated.

This one feels so right -> These hoes so trifling

no idea...lost -> desolation

the skeleton war -> take shelter now

It took me a while to realize which tweets go together, particularly since Twitter shows only the original tweet time, not when they were retweeted. Maybe you could retweet them as links?
They're also posted to tumblr, which can make it easier to see the pairs:

http://anagrammatweest.tumblr.com/

LCS = Longest Common Subsequence. In case someone eants to look it up.