The World, according to Donald Trump
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
countries.txt
credentials.sh.template
mkcorpus.sh
output.png
output.svg
process.py

README.md

trumpogram

The World, according to Donald Trump. Each country's size is approximately proportional to the number of times that it was mentioned in Trump's tweets and campaign speeches.

Final Output

Output Map Image

About

Inspired by this tweet: https://twitter.com/SwiftOnSecurity/status/832074664193249281

There isn't much to this project, just plugging a few existing tools together.

The identification of place names is performed using the spacy python library, so any issues in this area aren't my problem :P. I used spacy to output a list of GPEs and NORPs (Geo-Political Entities, Nationalities Or Religious/Political Groups). The script then resolves "synonyms", and generates a column of quantities, corresponding to the countries in the geographical data.

Note: Mentions of individual US states are not included in the US total. Otherwise it would probably be way too big...

Corpus

The corpus for this project was obtained from multiple sources (I might add more):

Mapping

I obtained the map data from thematicmapping.org I generated the final map using the ScapeToad tool.