Previously Unpublicised Code: manifestoclouds
This is very simple, generic code that just ties together a few libraries – and is by no means restricted to just political party manifestos – but I keep it around because I find it useful occasionally.Â I use the Python WordCloud library and matplotlib to produce the word clouds – after manually extracting the text from the PDFs using one of a myriad of tools depending on your platform.
The results look quite nice – and the results for the political party manifestos are quite politically interesting:
Everyone is very focused onÂ people and what the partyÂ will do, but there are some interesting differences. The Conservatives have the joint focus onÂ continuingÂ things they have been doing during their years in coalition, but also doing variousÂ new things now that they’re no longer ‘held back’ by the Lib Dems. The Green party focus a lot onÂ localÂ things, and have a focus on what theÂ public (both in terms of people, and in terms of theÂ public sector) can do. The Labour party are talking a lot aboutÂ needs,Â but also talk aboutÂ work more than the Tories (surprisingly!).
Anyway, ignoring the politics, the code is available on Github as usual.