<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Peter Royal on Medium]]></title>
        <description><![CDATA[Stories by Peter Royal on Medium]]></description>
        <link>https://medium.com/@Peter_G_Royal?source=rss-eef0c091a585------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*IKelrHTUL-n7tGIUvr9I_A.jpeg</url>
            <title>Stories by Peter Royal on Medium</title>
            <link>https://medium.com/@Peter_G_Royal?source=rss-eef0c091a585------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 14:59:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Peter_G_Royal/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Untangling Text: Voyant Tools’ Knots for Text Analysis]]></title>
            <link>https://medium.com/dh-tools-for-beginners/voyant-tools-2-0-less-common-tools-for-text-analysis-a922cfcd85cb?source=rss-eef0c091a585------2</link>
            <guid isPermaLink="false">https://medium.com/p/a922cfcd85cb</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[how-to]]></category>
            <dc:creator><![CDATA[Peter Royal]]></dc:creator>
            <pubDate>Tue, 10 Nov 2015 17:12:25 GMT</pubDate>
            <atom:updated>2017-01-08T23:47:19.700Z</atom:updated>
            <content:encoded><![CDATA[<h4>An Example of How to Use Voyant’s Alternative Functionalities</h4><h4>Introduction: What is Voyant Tools and Why Should I Care?</h4><p>I’d like to introduce you to <a href="http://voyant-tools.org/">Voyant Tools</a> because Voyant is still forgetting to introduce itself. In Alexis Priestley’s <a href="https://medium.com/@priestleyal/voyant-tools-a-tutorial-for-text-analysis-df265d85d214">earlier tutorial on the site</a>, she noted that a link on Voyant’s homepage for further information was broken. That is still the case, but other resources are available on Voyant’s <a href="http://docs.voyant-tools.org/">documentation site</a> if you wish to learn more, including <a href="http://docs.voyant-tools.org/context/background/">background information</a> about the site’s development.</p><p>There are also <a href="https://publish.illinois.edu/commonsknowledge/2014/10/10/using-voyant-tools-for-basic-text-analysis/">outside</a> <a href="https://blogs.nd.edu/emorgan/2014/01/voyant-tools/">sources</a> that provide an overview of the tool and its basic functions. In case you’d rather not leave this comfortable little space, I’ll provide some background myself.</p><p>Voyant Tools is <strong>an open source, web-based “</strong><a href="http://docs.voyant-tools.org/context/background/"><strong>suite of analysis and exploration tools for digital texts</strong></a><strong>.”</strong> The site allows users to upload a corpus or use one of Voyant’s pre-existing text collections, such as the works of <a href="http://voyant-tools.org/?corpus=shakespeare&amp;stopList=stop.en.taporware.txt">Shakespeare</a>. After uploading a corpus, users may apply various tools that reveal information such as word frequency and collocation.</p><p>The site was developed by <a href="http://stefansinclair.name/cv/"><strong>Stéfan Sinclair</strong></a>, Associate Professor of Digital Humanities at McGill University, and <a href="http://geoffreyrockwell.com/personal.html"><strong>Geoffrey Rockwell</strong></a>, Professor of Philosophy and Humanities Computing at the University of Alberta, Canada. The <a href="http://docs.voyant-tools.org/about/">About</a> page lists additional contributors to the site.</p><p>Now, onto an important question you may be asking:</p><blockquote><strong>How can I use Voyant Tools in my own research?</strong></blockquote><p>To answer this question, I’ll turn to the <a href="http://docs.voyant-tools.org/about/examples-gallery/">Examples Gallery</a> in Voyant’s documentation site—which lists and links to a number of projects that have used Voyant Tools—in the hope that these examples can serve as models or inspiration.</p><h4>A Sample from the Gallery: Voyant Tools in Scholarship</h4><p>The gallery lists and links to examples from several categories: Examples of Voyant in Research, Critical Approaches to Digital Humanities and Voyant Tools, Conferences and Workshops, and Examples of Voyant in Teaching. The most recent examples are from the spring of 2013, so it seems the site managers may have stopped compiling them.</p><p>The <a href="http://britishlibrary.typepad.co.uk/digital-scholarship/2013/05/on-metadata-and-cartoons.html">most recent example from the Research section</a> comes from the <a href="http://www.bl.uk/index.shtml">British Library</a>’s <a href="http://britishlibrary.typepad.co.uk/digital-scholarship/index.html">Digital Scholarship Blog</a>, which includes digital scholarship “<a href="http://britishlibrary.typepad.co.uk/digital-scholarship/about-this-blog.html">contributions from colleagues across the Library and special guests</a>.” The blog post, titled “On metadata and cartoons” and written by James Baker, describes a project in which Baker gathered metadata for a large number of British cartoons from the 1960s and 70s and analyzed it using a variety of tools. Baker used Voyant for topic modeling, which <a href="http://miriamposner.com/blog/very-basic-strategies-for-interpreting-results-from-the-topic-modeling-tool/">Miriam Posner</a> describes as “a method for finding and tracing clusters of words (called ‘topics’ in shorthand) in large bodies of texts.” (Interact with Baker’s corpus <a href="http://voyant-tools.org/?corpus=1368709350238.7305&amp;stopList=1368709570278il">here</a>.)</p><p>Baker anticipates the question often posed about the results of text mining: “[W]hat did I actually discover in the data?” Examining a word cloud derived from Voyant’s <a href="http://docs.voyant-tools.org/tools/cirrus/">Cirrus</a> tool, Baker suggests that “[t]he themes of the cartoons in the corpus track the politics of the day.” He argues that “textual content within cartoons during the same period tended toward natural language.” Baker also uses Voyant’s Word Trends graphs to track the relative frequencies of key terms in the cartoons under examination.</p><p>While Baker derives useful information from Voyant Tools, he also acknowledges its limitations, including that it “can only handle text not text vs. date” and that he mostly “discovered what [he] expected to discover” from the data. In spite of these limitations, Baker calls Voyant “perhaps the easiest data discovery tool for newcomers to get to grips with.”</p><p>Baker’s project and others from the gallery indicate the kinds of projects to which text mining, and Voyant in particular, is suited. Ideally, one should have a large corpus of texts. In addition to topic modeling, text mining can be used to visualize citation patterns in academic publications, track word frequencies across a corpus, and classify texts. (<a href="http://documents.software.dell.com/Statistics/Textbook/Text-Mining#applications">Here</a> is a list of examples of nonacademic applications of text mining.)</p><h4>What You’ll Find Ahead…</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qiBd_Yhg9U3NYVcwIEQePg.png" /><figcaption>An example of a Knots visualization</figcaption></figure><p>I present here a tutorial on the use of Voyant’s “Knots” tool, which can be found in the <a href="http://docs.voyant-tools.org/tools/">Tools Index</a>. As <a href="http://docs.voyant-tools.org/tools/knots/">Knots’ documentation</a> indicates, it “represents a corpus as a series of twisted [colored] lines.” The number of times the lines intersect represents their degree of linkage in the corpus. I can modify the terms to be analyzed as desired. For instance, I can remove some of the terms from the visualization by clicking on them.</p><p>For a very helpful primer on Voyant Tools’ basic or default functionalities, please see <a href="https://medium.com/@priestleyal/voyant-tools-a-tutorial-for-text-analysis-df265d85d214">Alexis Priestley’s guide for beginners</a>. Before describing the new features I’ll be demonstrating, I’ll quickly overview the site and the services it provides.</p><h4>My Dataset</h4><p>For this tutorial, I’ll be using part of a corpus I’m compiling for a larger research project. This project examines recent landmark cases of digital image manipulation in scientific publications and the language used to discuss image manipulation in specialist (i.e., scientific journals) and nonspecialist venues. Here I’m using a set of image submission guidelines and editorials about image manipulation published by scientists and intended primarily for other scientists.</p><h4>Introduction Part II: Voyant Basics</h4><p>The homepage, shown below, provides a text box in which the user can paste the text to be analyzed directly or URLs linking to documents within a corpus. The site accepts file formats for upload including plain text (.txt), HTML (.html), XML (.xml), MS Word (.doc, .docx), RTF (.rtf), and PDF (.pdf).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*s92dqcqkjrs-uO2ebp9xMA.png" /><figcaption>The Voyant Tools homepage with text box and buttons to upload files</figcaption></figure><p>For this demonstration, I’ll explain the process of uploading files rather than pasting text directly into the text box. To do this, I first click on the “Upload” button in the lower lefthand corner, which brings up this interface:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/188/1*WYD5xTqK5XEr61mm9wSKtQ.png" /><figcaption>Voyant Tools interface for uploading files</figcaption></figure><p>To add files to my corpus, I click on the “Add…” button, which opens the file manager on my computer. I then select the first file I want to add to my corpus. Unfortunately, it seems I can add only one file at a time. After adding several files to the corpus, I see the following list. (Note that, after adding about nine files, you can’t scroll down to view all the files in the list.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*aYmlFn1oAqESjIhYyvLEVw.png" /><figcaption>A list of uploaded documents ready for analysis</figcaption></figure><p>After I’ve uploaded all of my files, I click the reveal button, which brings me to Voyant’s main interface:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wvxTbJFVachV0hfDhKP7rA.png" /><figcaption>Voyant’s main interface</figcaption></figure><h4>Cirrus (Word Clouds) and the Role of <a href="http://docs.voyant-tools.org/ui/stopwords/">Stop Words</a> in Text Mining</h4><p>The above interface includes Voyant’s default analysis tools. Although these are not the focus of this tutorial, I’ll use Voyant’s word cloud feature, Cirrus, to demonstrate the effect of applying <a href="http://docs.voyant-tools.org/ui/stopwords/">stop words</a> to a corpus. Word clouds enable easy and intuitive visualization of the most frequently occurring words in a corpus and can help identify the most important or prominent terms for topic modeling or citation pattern mapping.</p><p>Before applying stop words, I can view the enlarged Cirrus display by clicking here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*8BbV-Caf2VKQ3LSI4qBtvQ.png" /><figcaption>Cirrus before applying stop words</figcaption></figure><p>In the enlarged version of the word cloud, I can clearly see a number of common words that are not relevant to my analysis:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3N2_25V6aGheDmdYwcWATQ.png" /></figure><p><strong>Applying a stop word list to a corpus excludes certain words from appearing in visualizations like Cirrus. Including common words, like “the,” which do not contribute useful information to the analysis, can skew visualizations and obscure more interesting results.</strong> To omit these words from my analysis, I return to Voyant’s main interface and click here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/222/1*9TK6bTmNJTB8DhVswkZmIg.png" /></figure><p>This brings up the following menu:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*mbmtWh6iaIkqu07QpEUsRw.png" /></figure><p>I click on the drop-down menu, which opens a list of stop words lists:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*pwLaeYJaUJJ2OztwT6abWA.png" /></figure><p>For my analysis, I’ll choose the English (Taporware) stop words list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*ef1MWxcwCMUZzi8860gfGQ.png" /></figure><p>However, this list still leaves some undesired words behind. If I <a href="http://voyant-tools.org/tool/Cirrus/?corpus=1447118629046.6924&amp;stopList=1447744804479gv">return to Cirrus</a>, these words become apparent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EVwfg0M5MhLK59TgtMJ9Hg.png" /><figcaption>Cirrus after applying the standard English stop words list</figcaption></figure><p>I want to exclude the terms “http,” “et,” “al,” and “doi” as well, so I must manually add them to the English (Taporware) stop words list to create a custom list. Back in the stop words menu, I click on “Edit Stop Words.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*gnTtFHYnzGBLSy9fP4mg8A.png" /></figure><p>This brings up the following menu, which displays all stop words in the list. I’ve added a title for the modified list I will create in the “Save List as” box at the bottom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*DLbGLu2j17rzGpkG0nrQYQ.png" /></figure><p>I then navigate to the bottom of the list, where I can enter additional words to be excluded from analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*ykayV4dl9aEwLKJ5aBQZqQ.png" /><figcaption>Stop words list with custom terms added</figcaption></figure><p>After saving my modified list, I return to the previous menu, where I check “Apply Stop Words Globally” to exclude the selected words across the corpus and across different tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*qTe1WX2Za3YuM6zCGOqGZQ.png" /></figure><p>Now, when I return to the Cirrus tool, my word cloud contains only those words relevant to my analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*JuBT234Ta6BZfFuYP47rlg.png" /><figcaption>Cirrus with custom stop words list applied</figcaption></figure><p>Now that I have uploaded a corpus and applied stop words, I can examine some of Voyant’s other tools.</p><h4>Digging Deeper into Voyant’s Tools Index</h4><p>To find a list of Voyant Tools’ other features, simply navigate to the <a href="http://docs.voyant-tools.org/tools/">Tools Index</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2VU0S7gvZ4s-T8X_69kObQ.png" /><figcaption>The top of Voyant’s Tools Index</figcaption></figure><p>During my exploration of the Tools Index, the screenshot for the “Knots” tool struck me as a particularly interesting and unconventional method of visualizing text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VYsFBFt04x-4nlFXv1rGRg.png" /><figcaption>Knots as it appears in the Tools Index</figcaption></figure><h4>Loading a Corpus into a New Tool</h4><p>I open Knots by clicking the “<a href="http://docs.voyant-tools.org/tools/knots/">use it</a>” link, which opens the following page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*s0tanXAaqFPeRGGinQ4AcQ.png" /></figure><p>Notice that the page is identical to Voyant’s homepage except for the addition of the /tool/Knots extension in the URL. At this point, you may be letting out an exasperated sigh, thinking you have to upload your corpus again. Not to worry, though. While you certainly can begin from this page and upload a corpus, you can also pull a preexisting corpus into this tool (and any other tool on Voyant). To do this, I return to the main interface—the one I saw just after uploading and revealing my corpus.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Z1YMkwijy0hRTTrs1ll4w.png" /></figure><p>Now I can click on the button, labeled “Export,” in the upper right hand corner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*Y44Snk7L4V0FKEmD-8EZzA.png" /></figure><p>This brings up several options for navigating to the current corpus.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*kMho6QSzp5m9DqqzJytVog.png" /></figure><p>For this tutorial, I’ll use the URL option, which generates the following.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*-GIog84ri1FliKBuJ1MlMg.png" /></figure><p>I have thus generated a URL that I can bookmark and use to easily access the same corpus in other tools. To transfer this corpus to another tool, I select and copy the portion of the url that follows .org/</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*Jf8tXKLpvn187MZksvrxPg.png" /></figure><p>Now, if I navigate back to Knots, I can access my corpus by pasting the corpus ID at the end of the URL, like so.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L5H7ltT7wEmtAuS5Cm0Ceg.png" /></figure><p>Notice that the URL contains a “stopList” ID so that I do not have to recreate my custom list in Knots. After entering the URL, press Enter to arrive at the Knots interface.</p><h4>Using Knots</h4><p>As <a href="http://docs.voyant-tools.org/tools/knots/">Knots’ documentation</a> indicates, each of the colored lines represents the word of the corresponding color in the upper left hand corner of the interface. The number of times the lines intersect represents the corresponding words’ degree of linkage in the corpus.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j6a6aaSIZufcOwQiOc7D-w.png" /></figure><p>I can modify the terms to be analyzed as desired. For instance, I can remove some of the terms from the visualization by clicking on them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3OjPoalocI7AK88A6BDKHQ.png" /></figure><p>I can also add terms, perhaps using my previously generated word cloud as a reference. To do this, I enter the terms into the box labeled “Find Term,” as shown below, and press Enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*jCotNH0rRznS9DHKAeNoyg.png" /></figure><p>After I add terms, they appear as new colored lines. I can then activate or deactivate whichever terms I want to include or exclude from my analysis by clicking on them in the upper left.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qiBd_Yhg9U3NYVcwIEQePg.png" /></figure><p>I can also change three other attributes of the visualization: “Build Speed,” “Starting Angle,” and “Tangles.”</p><h4>Changing Attributes of the Visualization</h4><p>Build speed modifies how quickly the lines form and may help the user better see exactly where overlaps occur. Counterintuitively, the higher I place the slider, the slower the lines form. In the demonstration below, I’ve placed the slider at about the middle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*UISPw-dslEpf9VQvlfrVhg.gif" /><figcaption>Changing build speed demo</figcaption></figure><p>Starting angle determines the angle at which the lines form. It seems the best starting angle depends on the number of terms under consideration. With a smaller set of terms, a smaller angle can make it easier to see closely related terms. A larger angle can prevent visual clutter when examining a larger set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*ELUmctZf6i0fQF_Xi_5d5Q.gif" /><figcaption>Changing starting angle demo</figcaption></figure><p>Finally, Tangles changes the number of twists in the lines. Unfortunately, Knots’ documentation does not seem to make clear what non-overlapping tangles signify. They may represent parts of a document in which a term appears frequently in quick succession.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*lgMp9kW8A_DcssqsWOD2IA.gif" /><figcaption>Changing tangles demo</figcaption></figure><h4>What Can Knots Tell Me?</h4><p>Knots can reveal helpful information about collocates, which can be useful for visualizing citation patterns, for example. In the example I’ve used above, and in <a href="http://voyant-tools.org/tool/Knots/?corpus=JaneAusten&amp;stopList=stop.en.taporware.txt&amp;docIndex=5">this example</a> using one of Voyant’s preexisting texts (Jane Austen’s <em>Persuasion</em>), Knots can simply show which terms tend to occur together and separately. As James Baker points out regarding Voyant’s main interface tools, Knots may simply help you identify useful directions for further investigation or contradict a hypothesis about the texts under consideration. For instance, I would’ve expected a greater degree of collocation between the words “image” and “manipulation” in my corpus, but Knots seems to contradict that assumption.</p><h4>Final Thoughts</h4><p>Although Knots is an interesting and unusual way to visualize text, interpreting its results is perhaps less intuitive and clear-cut than those of the tools on Voyant’s main interface. As you will likely find if you explore the Tools Index more, difficulty interpreting Voyant’s tools often derives from insufficient or ambiguous documentation. At the end of each tool’s documentation page, there is a form in which users can leave comments. Providing feedback for the developers may lead to improvements and enrich the variety of available tools.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a922cfcd85cb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dh-tools-for-beginners/voyant-tools-2-0-less-common-tools-for-text-analysis-a922cfcd85cb">Untangling Text: Voyant Tools’ Knots for Text Analysis</a> was originally published in <a href="https://medium.com/dh-tools-for-beginners">DH Tools for Beginners</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>