I’m at the Digital Humanities 2012 Conference and attended on a Voyant Tools workshop with Stéfan Sinclair and Geoff Rockwell. I’ve enjoyed playing with Voyant many times over the last year, particularly in my Introduction to Digital Humanities class, where we distant-read the work of Carol Ann Duffy.
Voyant’s a great set of tools for doing quick and easy text analysis, and there are lots of little bits and pieces. I just learned how to quickly compare the differences between different corpora, and I wanted to share it quickly (AKA so I don’t forget).
Step One: Upload one corpus

This part is pretty easy. Go to http://voyant-tools.org/ and upload the first corpus.
Step Two: Find the corpus ID
Now you need to find the ID for your corpus. You do this by starting the export process. Click on the disk icon in the upper right corner.

This will open the “Save” interface, where you can get a direct URL for your corpus and the skin you’re currently using to explore it. But what you need to get is the number at the tail end of the URL.

Copy this number (the corpus ID) to your clipboard.
Step Three: Upload Another Corpus
Now you need to upload a second corpus, that you want to test against the first. So go back to http://voyant-tools.org/.
Step Four: Adding “Difference”
Once you’re in the interface of your second corpus expand the “Words in the Entire Corpus” pane in the lower left corner by clicking on the title bar.

Here you can see a list of the most common words in your second corpus.

When you hover over any of the column headers, you’ll see a drop-down arrow that gives you more options.

Click on the arrow, choose the columns option, and enable “Difference.”

This provides a new column in the “Words in the Entire Corpus” pane.

But since it’s currently empty, we need to do one last step.
Step Five: Enabling “Difference”
Click on the gear icon in the upper-right corner of the pane.

The next pop-up will give you the option to add a stop words list to your corpus. You can also add a comparison corpus.

Here is where you’ll paste the corpus ID that you saved to your clipboard earlier.

Click “OK” and you can now see how the most common words in your second corpus compare to the ones in your first.

That’s it. Not immediately intuitive but also not difficult at all, once you know how to do it. In some ways, that’s what you could say that about Voyant itself, I suppose. But it’s totally worth learning.
I learned a new way to compare word differences w/Voyant. So I wrote a tutorial: http://t.co/LBGqyJYx. cc @sgsinclair @geoffrockwell #dh2012
MT @briancroxall I learned a new way to compare word differences w/Voyant. So I wrote a tutorial: http://t.co/rRyA01bO. #dh2012
Once more. I learned new way to compare word diffs w/@VoyantTools. So I wrote a tutorial: http://t.co/LBGqyJYx. #dh2012
Hi Brian, nice post, thanks for sharing this nice method, which I had not discovered yet. I’m definitely going to try this out. Cheers, C.
Croxall! We’re at #dhwi and yet I still can get away from @briancroxall – comparing copora in Voyant http://t.co/JRRppQ2v
Burton also mentioned @VoyantTools. See @briancroxall’s “Comparing Corpora in Voyant Tools” http://t.co/X0oCqvShmU #qepup13