This is the code used for the analysis done for my blog post on violence in religious text.
You'll need Leiningen to build the project and run the notebook, and wget to obtain the data.
This project also uses the gg4clj library, which requires an installation of R, along with the ggplot2 package.
As step one, you need a landing point for the images.
mkdir images
Next get the data.
There's a shell script in resources/
that handles this for you.
From project root:
cd resources/
chmod u+x get_data.sh
./get_data.sh
It takes a few minutes. Once it's done you can launch the notebook with Leiningen.
lein gorilla
From the GorillaREPL you can open the notebook file and run it.
The main
function converts the notebook to markdown.
Run it with
lein run
It'll overwrite the file violence-in-religious-text.md
in the root directory of the project.
There are also unit tests for the markdown conversion.
lein test
will run them.