What are we doing? A Deeper Dive into TEI and Text Analysis

Text analysis is a broad term that encompasses the examination and interpretation of textual data. It involves various techniques to understand, organize, and derive insights from text, including methods from linguistics, statistics, and machine learning. Text analysis often includes processes like text categorization, sentiment analysis, and entity recognition, to gain valuable insights from textual data. (Definition from George Washington University Library)

It’s not uncommon for anyone who hears about The Digital Gogol Project to be confused about what it is we’re actually doing. Explaining that we’re encoding a text using XML markup language so that a computer can “read” it and that we can then query it and visualize it as data is not quite sufficient. The terminology, coming from computer science, is unfamiliar to humanities scholars. There are concerns about the intrusion of computers into humanities work. A machine can’t close-read a story, can’t understand emotion, motivation, and narrative play, or interpret intention, nuance or context – in short, all the elements of what it means to be human in this world. Computers are good with data, and most people might say that literature and history are the opposite of data, so what are computers doing in humanities work? 

To find the answer, we must first turn our texts into data.

Within the digital humanities (DH) context, text encoding is a long-established tradition coming out of the possibilities offered by emerging digital technologies. However, as libraries, museums, and individual scholars began looking for ways to represent texts in digital form, new platforms, systems, and standards proliferated. The problem was that these systems were competing, unstandardized, and often inadequate, impeding the ability of GLAM institutions and scholars to share materials in a long-standing and sustainable way. The idea for the Text Encoding Initiative (TEI) was developed first in 1987 during a scholarly “meeting of the minds” sponsored by the Association for Computers in the Humanities, and the first guidelines were produced in 1990, with subsequent revisions and updates occurring periodically ever since. TEI guidelines are maintained and promoted by the TEI Consortium and its standards are widely recognized as an important tool for preserving textual information in digital form.

Initially, the TEI operated in the realm of scholarly digital editions and archives. Scholars would encode manuscripts, rare texts, and cultural heritage materials and make them available digitally as searchable documents. Accessibility has always been at the forefront of this initiative and the TEI has helped give many lesser known texts and archival collections a new digital life. Similarly, I wanted to give Gogol’s work a new digital life by providing XML files of his works so that other scholars and researchers can use them for their own digital humanities work. XML (eXtensible Markup Language) is just an easy and flexible way of storing data. It organizes and describes information with tags and allows for efficient data sharing. Its standardized structure eliminates the need to “translate” data between applications with custom code, because the data structure is already contained in the data. The Text Encoding Initiative is a version of XML that is tailored to literary and historical texts with specific tags relevant to those sources. 

By making the files of Gogol’s works in the original Russian available publicly as XML files, anyone can download and use them in their projects, bypassing the (sometimes) tedious process of encoding the texts from scratch. Beyond creating these files, once the texts of Gogol’s stories have been turned into data, we will then visualize that data to find patterns, frequencies, trends, networks, connections between texts. We will zoom out to make visible some details that we cannot see with close reading; we can analyze hundreds of texts simultaneously. We can also use any of a number of digital humanities tools and platforms in combination with programming languages to perform sentiment analysis, topic modelling, and mapping. 

My hope in doing this is to advance the field of Slavic digital humanities. Slavic studies has been slower to adopt the digital approach than other fields, even though new technologies offer innovative ways of engaging with these materials. There are misconceptions about what DH is and suspicions about the role of the digital in humanities work, not to mention the lack of institutional support and the learning curve required to implement an infrastructure that supports this kind of work. The digital humanities do not replace traditional humanities skills and approaches, but a complement to them. The human component cannot be eliminated, because any computational results still require a human for interpretation and contextualization. 

What about AI?

It’s an inescapable question. I do not like artificial intelligence and try to avoid using it, even though I acknowledge that there are situations and problems that could benefit from AI usage. The digital humanities is not the same as artificial intelligence, though there are areas of overlap as well as a growing subfield of digital humanities scholars who make active use of it. Some digital humanists enlist the help of artificial intelligence tools to accomplish the bulk of the basic structural tagging, and I see why. I do not plan to enlist artificial intelligence to accomplish any part of this project, no matter how tedious the work gets. I’m not looking for quick results. Although many of the computational methods of the digital humanities fall under the loose umbrella term of “distant reading,” encoding one of Gogol’s stories is about working closely with the text. When I am deliberating about which elements to tag and how to tag them, I’m evaluating the text, catching new details and nuances, and posing new questions about my own interpretation. 

The Digital Gogol Project is one of textual inquiry and possibility.  At a time when AI is available with easy ready-made answers, we’re creating a space for investigation, for making mistakes, for following whims and going down rabbit holes. We’re learning new skills and testing theories and allowing curiosity to determine our focus and next steps. There is no true end result, only experimentation with different tools and perspectives. I’m not sure what we’ll find, but I’m sure it will be worthwhile!


Gogol and Identity: Past and Present

Amara Romero

When I was first assigned a short story by Nikolai Gogol in my intro class on the Golden Age of Russian literature, I expected him to feel distant. Often hailed as the “father of Russian realism”, Gogol’s work, like any writer’s, is of course a reflection of his time. I anticipated tales of 19th century clerks and government officers, all part of a monolithic cultural and historical identity that I, as a Mexican-American sophomore in college, would have little to no connection with while reading in the 21st century. Instead, I found a writer whose concerns and societal observations felt shockingly current. Gogol’s characters are constantly worried about status and identity, and many of them are situated in moral conflict surrounding the instability of who they are in the eyes of others. Considered and taught as a major figure in Russian literary tradition, Gogol’s own identity and personal history concretize the common theme in his writing of interrogating one’s place in society. As a Ukrainian-born writer whose early works drew heavily on Ukrainian folklore, culture, and landscape, Gogol and his writing resist being understood through a single national category, despite the language of composition. That complexity is what makes him continually relevant today. Across his portfolio, he repeatedly returns to unstable identities, shifting social roles, linguistic confusion, and characters left in the margins of the systems they are desperate to be recognized by. Gogol’s prevailing modernity lies both in the exceptionality of his style and storytelling, and in the way his life and fiction work in tandem to reveal how fragile identity can become when shaped by culture, language, bureaucracy, and empire. Reading Gogol today means encountering a world that is funny, strange, and unsettlingly recognizable, because it reveals how easily identity can be constructed, distorted, or claimed by others.

Gogol’s world is hilariously absurd, but that doesn’t mean that it doesn’t make any sense. Absurdism and humor often become the mechanisms by which his characters reckon with their place in bureaucracy, a system that regulates their entire lives. His main characters are often ordinary people: Akaky Akakievich in “The Overcoat”, Poprishchin in “Diary of a Mad Man”, and Kovalyov in “The Nose” are all civil servants. These characters’ obsessions with status and recognition ultimately reveal both how deeply identity depends on social validation and how absurd the systems of validation become when titles, uniforms, and appearances are treated as measures of human worth. Akaky Akakievich’s life and death become wholly focused on a coat, Poprishchin’s desire for status, and therefore worth, quickly spirals into delusion, and like Akakievich, is what leads to his undoing. When Kovalyov’s nose escapes his face and is found to be a higher-ranking official than its owner, Kovalyov’s peers refuse to help or believe him due to the disparity in status between the two parties. Gogol’s funny and absurd world, then, presents itself as something entirely apart from the “random silliness” that one could perceive upon a first read. Instead, it exaggerates the social pressures and irrational logic already built into ordinary social life. These social pressures remain pervasive today, when a question like “What do you do?” becomes synonymous with “What is your job?” The phrasing implies that work is not just one part of life, but one of the primary ways a person becomes socially legible.

This emphasis on status also makes identity in Gogol’s writing feel more like something performed for others, rather than something internally controlled and stable. His characters often read as ridiculous because of how intensely they care about how they are perceived, and the lengths they go to in order to address or “fix” this unstable perception. Akaky should need the overcoat for warmth, but this reason becomes marginalized when he realizes that his new coat allows him to be seen as more important to his coworkers. Poprishchin invents a royal identity because his actual social position feels unbearable, and Kovalyov panics over the loss of his nose because it disrupts the image of dignity and authority he believes he is entitled to project. In each case, identity is unstable, and mediated by an audience. Gogol’s characters want to appear important, respectable, intelligent, or socially valuable, and their desperation becomes absurd because their world has taught them that appearance is inseparable from worth. This is precisely where Gogol begins to feel especially modern. Contemporary life is not organized around the same imperial ranks, but it still asks people to perform identity and success through job titles, resumes, academic achievement, class markers, and constructed public identities. With modern displays of personhood through social media, for example, public life nowadays has almost become even more performative, with carefully constructed pages meant to demonstrate our lives to the world and those around us. We too are hyperfocused on how we are perceived by others, and through our modern systems, show the same desperation as Akaky, Poprishchin, and Kovalyov to control this perception. 

This instability that Gogol gives his characters is also reflected in Gogol’s own place in literary history, where his identity has often been claimed, simplified, and divided by national categories. Even though he was born in Ukraine, with much of his early work drawing on this background, he wrote in Russian, and is claimed and centralized in the Russian literary canon. His career shows that literary identity can be just as unstable as the identities of his characters. It can be shaped by qualities such as language or birthplace, or distorted entirely under the pressures of empire. Gogol’s characters struggle to control how they are seen under and within bureaucratic and social systems, and Gogol, posthumously, is frequently positioned by literary history within categories that cannot fully contain him. Asking whether Gogol is a “Russian writer” or a “Ukrainian writer” may be less revealing than asking why literary history has so often needed him to be one thing at a time, and why one category has so often been privileged over the other.

When I first encountered Gogol, I expected to meet a writer whose world would feel far removed from my own. However, I found that the distance I anticipated was part of what made his work so enduringly powerful. His clerks, officials, coats, noses, and absurd bureaucracies may belong to another century, but the anxieties beneath them remain familiar. It is impossible to claim that I connected to Gogol’s work because my world is the same as his, but situated comfortably within the realm of possibility is the idea that his stories deal with familiar things like status, work, ambition, embarrassment, and identity, which absurdity makes look strange enough that we can see them more clearly. Gogol’s world is funny because it is exaggerated, strange because it is distorted, and modern because it shows how fragile identity can become when it depends on recognition. What I initially imagined as a recollected, incomprehensible world from the past strangely and unexpectedly reflected my own, because it revealed how many of the questions his characters face have remained unsolved today.