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 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: 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:


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:

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: