REABot: writing the news using NLTK
Thursday, April 29th, 2010We’ve been analysing the UK political news and Twittersphere as part of a project for the New Statesman, and for a bit of fun we decided to see what else we could do with the numbers.
There’s an excellent Python library called the Natural Language Toolkit, which includes a function for generating text based on word-frequency analysis, so we decided to see what would happen if we hooked it up to code that reads the UK’s newspapers. We discovered we’d created a monster!
We’ve named it REABot, for the Resolver Electoral Analysis Robot, and you can read its political musings here. So far, it’s treated us to an overview of the electoral campaign so far, and profiles of the leaders of the three main political parties: Gordon Brown, David Cameron, and Nick Clegg. It also makes occasional appearances on Twitter.

The Institution of Engineering and Technology, one of the world’s leading professional societies for the engineering and technology community, has shortlisted Resolver One as one of the finalists for its