Mapping the World’s Laws

We’ve created a visualization of the most common word pairs in global laws. To read more about how this was done (and grab the source files) please see our earlier blog post.

This is the first attempt by anyone to graph the world’s laws using the text of the laws. We’re confident in that statement because Global-Regulation.com has by far the most comprehensive database of world laws, translated into English.

You can create your own graphs of individual countries by using the GDF files that we’ve prepared and made available here: https://www.global-regulation.com/assets/visualization/GDF_files_for_top_50_word_pairs_by_country.zip. We recommend using Gephi to open the files.

We’re working on making a browsable version of the map. Stay tuned.

You can see a PDF version here: https://www.global-regulation.com/assets/visualization/All_Countries_Visualization.pdf.

SHARE THIS POST ON SOCIAL MEDIA

Mapping the World’s Laws (Methodology)

We’ve taken our database of over 1.3 million laws and extracted every two word pair from every law, organized by country. We then eliminated common words (e.g. “the”, “this”, etc.) and words that aren’t of much interest (e.g. “subparagraph”). By merging all of these word pairs and counts into files, we’ve created lists of the most common word pairs by country. You can download the 48 raw text files here: https://www.global-regulation.com/assets/visualization/48_country_word_pairs_may_2016.zip.

By using the word pairs as nodes and the connection to countries as edges, the text files can be merged to create a “graph” (a set of nodes and edges). The graphs were then written to text files in GEDF format. The file for Canada can be found here: https://www.global-regulation.com/assets/visualization/Canada-word_pairs.gdf.

SHARE THIS POST ON SOCIAL MEDIA