Live data from Hacker News

Twitter Bot Finds Anagrams of Twitter Statuses

anagramatron.tumblr.com

21–23 of 23 posts

Re: Twitter Bot Finds Anagrams of Twitter Statuses

#21
post #18

I find it interesting that they're manually approving the hits, because, as they indicate, most hits are (nearly) identical. It shouldn't be too difficult to solve this automatically though. Identical hits can be discarded very easily. The ones that only have a few words or letters reversed can be detected with some kind of similarity algorithm.

I had a look at the source code, and it does quite a bit of filtering, particularly around making sure the words are unique, and there is a primitive character comparison algorithm. The code could be simplified by using Python's set() and improved by doing a copy'n'paste on a Levenshtein function.

oh hey yea that would've been useful. ^_^

Re: Twitter Bot Finds Anagrams of Twitter Statuses

#22
post #10
post #5

Nice one :) I love when people use programming to play with words. Sad it's english only. I may work on a french version. But really nice idea.

hey, author here: It's english only mostly because of volume, and because I review results. Making a french language version would mostly just be a matter of hosting. If you're interested let me know, I'd love to help you out.

maybe as a side project.

But i have some friends who makes rap and there is some diamonds that i've found with your bot :

=

I want to see this world change.

Let's see what I can do right now

=

And :

=

you have destroyed me

do you deserve my hate?

=

i keep it in mind but it will not be before six months.

I will make a pull or notify with github, i code also in python.

In french we have some software to find rimes.

Putting the finding in a database could be a nice addition, i could help to compose text.

You have my admiration for the idea and the execution ...

Re: Twitter Bot Finds Anagrams of Twitter Statuses

#23

I'm a bit surprised that there are anagrams to be found. It's easy to find them if they exist, but there's no guarantee at all that there actually should be collisions.

Fermi estimate time! Anagrams are just sentences with the same letter counts. The anagrams they're posting have 25ish letters... how many ways are there to distribute 25 balls into 26 bins? (25+26)!/25!/26! is ~250 trillion. The birthday paradox square roots that down to ~10 million, and the fact that we prefer some bins (fewer Zs, more Es) probably cuts it down even further to ~1 million. So one anagram per million…

Quick sanity check: most of the anagrams there are from short tweets, as you'd predict.
Post reply on HN