Computing and Visualizing the 19th-Century Literary Genome

paper
Authorship
  1. 1. Matthew Jockers

    Stanford University

Work text
This plain text was ingested for the purpose of full-text search, not to preserve original formatting or readability. For the most complete copy, refer to the original conference program.

overview
In literary studies, we have no shortage of anecdotal wisdom regarding the role of influence on creativity. Consider just a few of the most prominent voices:
1. ‘Talents imitate, geniuses steal’ – Oscar Wilde (1854-1900?).1
2. ‘All ideas are second hand, consciously and unconsciously drawn from a million outside sources’ – Mark Twain (1903).
3. ‘The historical sense compels a man to write not merely with his own generation in his bones, but with a feeling that the whole of the literature … has a simultaneous existence’ – T. S. Eliot (1920).
4. ‘The elements of which the artwork is created are external to the author and independent of him …’ – Osip Brik (1929).
5. Anxiety of Influence – Harold Bloom (1973).
Whether consciously influenced by a predecessor or not, it might be argued that every book is in some sense a necessary descendant of, or necessarily ‘connected to, ’ those before it. Influence may be direct, as when a writer models his or her writing on another writer,2 or influence may be indirect in the form of unconscious borrowing. Influence may even be ‘oppositional’ as in the case of a writer who wishes to make his or her writing intentionally different from that of a predecessor. The aforementioned thinkers offer informed but anecdotal evidence in support of their claims of influence. My research brings a complementary quantitative and macroanalytic dimension to the discussion of influence. For this, I employ the tools and techniques of stylometry, corpus linguistics, machine learning, and network analysis to measure influence in a corpus of late 18th- and 19th-century novels.
method
The 3,592 books in my corpus span from 1780 to 1900 and were written by authors from Britain, Ireland, and America; the corpus is almost even in terms of gender representation. From each of these books, I extracted stylistic information using techniques similar to those employed in authorship attribution analysis: the relative frequencies of every word and mark of punctuation are calculated and the resulting data winnowed so as to exclude features not meeting a preset relative frequency threshold.3 From each book I also extracted thematic (or ‘topical’) information using Latent Dirichlet Allocation (Blei, Ng et al. 2003; Blei, Griffiths et al. 2004; Chang, Boyd-Graber et al. 2009). The thematic data includes information about the percentages of each theme/topic found in each text.4 I combine these two categories of data – stylistic and thematic – to create‘book signals’ composed of 592 unique feature measurements. The ‘Euclidian” metric is then used to calculate every book’s distance from every other book in the corpus. The result is a distance matrix of dimension 3,592 x 3,592.5
While measuring and tracking ‘actual’ or ‘true’ influence – conscious or unconscious – is impossible, it is possible to use the stylistic-thematic distance/similarity measurements as a proxy for influence.6 Network visualization software can then be used as a way to organize, visualize, and study the presence of influence among of books in my corpus.7 To prepare the data for use in a network environment, I converted the distance matrix into a long-form table with 12,902,464 rows and three columns in which each row captures a distance relationship between two books. The first cell contains a ‘source’ book, the second cell a ‘target’ book, and a third cell the measured distance between the two. After removing all of the records in which the target book was published before, or in the same year as, the source book,8 the data was reduced from 12,902,464 records to 6,447,640. This data and a separate table of metadata were then imported into the open source network analysis software package Gephi (2009) for analysis and visualization.
analysis
Networks are constructed out of nodes (books) and edges (distances). When plotted, nodes with less similarity (i.e. larger distances between them) will spread out further in the network. Figure 1 offers a simplified example of three imaginary books.

Figure 1: a sample network with edge numbers representing measured distances between nodes
While it is not possible to show the details of the entire network here, it is possible to display several of the most obvious macro-structures. Figure 2, for example, presents a zoomed out view of the network with book nodes colored according to dates of publication.9

Figure 2: The 19th-century novel network colored according to publication date
The shading of nodes and edges according to publication date reveals the inherently chronological nature of stylistic and thematic change. The progressive darkening of the nodes from east to west allows us to see, at the macro-scale, how style and theme are changing and evolving over time. 10Also seen in this image is a ‘satellite’ of books in the northwest. This satellite represents a ‘community’ of novels that are highly self-similar but at the same time markedly different from the books in the main network cluster. 11When the network is recolored according to gender (figure 3), a new axis can be seen splitting the network into northern and southern sectors along gender lines.

Figure 3: The 19th-century novel network colored according to author-gender
This visualization (Figure 3) reveals that works by female authors (colored light gray) and male authors (black) are more stylistically and thematically homogeneous within their respective gender classes. As a result of this similarity in ‘signals,’ female-authored books cluster together on the south side of the main network, while male-authored books are drawn together in the north.12 These two ‘views’ of the network allow us to begin imagining the larger macro-history of thematic-stylistic change and influence in the 19th-century novel. What is not obvious in this macro-view, however, is that a great many of the individual books we have traditionally studied are in fact ‘mutations’ or outliers from the general trends. Harriet Beecher Stowe’s Uncle Tom’s Cabin, for example, clusters closer to the works of male authors, and Maria Edgeworth’s Belinda has a signal that does not become dominant for forty years after the date of Belinda’s publication. Also absent from the macro-view are the individual thematic-stylistic ‘legacies’. Using three measures of network significance (weighted in-degree, weighted out-degree and Page-Rank), 13I will end my presentation with the argument that Jane Austen and Walter Scott are at once the least influenced (i.e. most original) of the early writers in the network and, at the same time, the most influential in terms of the longevity, or ‘fitness,’ of their thematic-stylistic signals. The signals introduced by Austen and Scott position them at the beginning of a stylistic-thematic genealogy; they are, in this sense, the literary equivalent of Homo erectus or, if you prefer, Adam and Eve.
references
Bastian, M., S. Heymann, et al. (2009). Gephi: An Open Source Software for Exploring and Manipulating Networks.
Blei, D. M., T. L. Griffiths, et al. (2004). Hierarchical topic models and the nested Chinese restaurant process. Cambridge, MA: MIT Press.
Blei, D. M., A. Y. Ng, et al. (2003). Latent Dirichlet Allocation. Journal of Machine Learning Research 3: 993-1022.
Bloom, H. (1973). The anxiety of influence; a theory of poetry. New York: Oxford UP.
Bloom, H. (2011). The anatomy of influence: literature as a way of life. New Haven, Conn.: Yale UP.
Brik, O. M. (1929). Teaching Writers.
Chang, J., J. Boyd-Graber, et al. (2009). Reading Tea Leaves: How Humans Interpret Topic ModelsAdvances in Neural Information Processing Systems 22.
Eliot, T. S. (1920). The sacred wood; essays on poetry and criticism. London: Methuen.
Garcia, M., and C. Martin (2007). Function Words in Authorship Attribution Studies. Literary and Linguistic Computing: Journal of the Association for Literary and Linguistic Computing 22(1): 49-66.
Grieve, J. (2007). Quantitative Authorship Attribution: An Evaluation of Techniques. Literary and Linguistic Computing: Journal of the Association for Literary and Linguistic Computing 22(3): 251-270.
Hoover, D. L. (2001). Statistical Stylistics and Authorship Attribution: An Empirical Investigation. Literary and Linguistic Computing: Journal of the Association for Literary and Linguistic Computing 16(4): 421-444.
Hoover, D. L. (2008). Quantitative Analysis and Literary Studies. A Companion to Digital Literary Studies. Oxford: Blackwell.
Martindale, C., and D. McKenzie (1995). On the Utility of Content Analysis in Author Attribution: The Federalist. Computers and the Humanities 29(4): 259-270.
Team, R. D. C. (2011). R: A Language and Environment for Statistical Computing. Vienna: Austria, R Foundation for Statistical Computing.
Twain, M., and A. B. Paine (1975). Mark Twain’s letters. New York: AMS Press.
Yang, Y., and J. Pedersen (1997). A comparative study on feature selection in text categorization. Proceedings of the 14th International Conference on Machine Learning (ICML ’97), Nashville, Tennessee.
Zhao, Y., and J. Zobel (2005). Effective and scalable authorship attribution using function words. Lecture Notes in Computer Science. Berlin: Springer, pp. 174-189.
notes
1.Routinely attributed to Wilde, but of uncertain origin, Wilde probably ‘borrowed’ this quip.
2.An extreme case may be Fielding’s Shamela, which attempts to satirize Richardson’s Pamela.
3.Features with a corpus mean less than 0.10 were excluded. This resulted in 92 features being retained. For more on feature selection practices see: Martindale and McKenzie (1995), Yang and Pedersen (1997), Hoover (2001), Zhao and Zobel (2005), Garcia and Martin (2007), Grieve (2007), Hoover (2008)
4.For this research, the topic model was set to extract 500 latent topics.
5.‘Distance’ here is a measure of stylistic and thematic similarity. Distances were calculated using the default settings of the ‘dist()’ function in the R statistics package. See: Team (2011)
6.This is not simply a ‘proxy’ of convenience. It is, in fact, an ideal proxy, especially so when we consider that even plagiarism (the most obvious form of influence) can be accidental.
7.I’m grateful to my colleague Elijah Meeks who sees the world through network analysis goggles and who aided me in visualizing and analyzing this data.
8.Influence only works in one direction!
9.All network layouts employ Gephi’s built-in Force Atlas 2 algorithm.
10.Remember that time is not a feature in the similarity calculations. The arrangement of the nodes in a chronological fashion is a byproduct of the way in which the books signals change in a regular, chronological, manner.
11.In the larger presentation of this work, I will offer an explanation for why the 499 books in this isolated cluster are split off from the main network. One unifying element is time; most are books from a similar time period, but the full explanation is more nuanced.
12.Even in the satellite community, sub clustering by gender is apparent.
13.Weighted in-degree is a measure of influence coming into a node whereas weighted out-degree provides a measure of the influence a given node exerts on subsequent nodes. The Page-Rank algorithm can be used to gauge the significance/power/importance of a book in the overall network.

If this content appears in violation of your intellectual property rights, or you see errors or omissions, please reach out to Scott B. Weingart to discuss removing or amending the materials.

Conference Info

Complete

ADHO - 2012
"Digital Diversity: Cultures, languages and methods"

Hosted at Universität Hamburg (University of Hamburg)

Hamburg, Germany

July 16, 2012 - July 22, 2012

196 works by 477 authors indexed

Conference website: http://www.dh2012.uni-hamburg.de/

Series: ADHO (7)

Organizers: ADHO

Tags
  • Keywords: None
  • Language: English
  • Topics: None