Manuscript Offprint

arXiv:2609.08459

Detecting Authorship in Political Texts with Inductive Stylometry

Gennadii Iakovlev, Levente Littvay

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Political texts are rarely authored by the nominal speaker alone. Tweets, speeches, reports, and official statements are drafted, edited, or harmonized by staff, yet political science has paid limited attention to the stylistic traces these hidden authors leave behind. This paper develops and stress-tests an inductive stylometric approach for recovering latent authorship structure in political communication, combining character 3-gram features with UMAP dimensionality reduction, and Burrows' Delta. We apply the approach to six corpora that vary in length (from tweets to long documents), in mode (written and oral), and in language (English and Hungarian). The approach recovers near-disjoint analyst fingerprints in formal legal prose in both languages, sorts a politician's tweets into validated subsets while uncovering additional insights, and distinguishes scripted from improvised speech. It fails, however, to resolve individual speechwriters within scripted corpora. Frequency-based stylometry is thus a powerful tool that, depending on authorial signal strength and institutional editing, can uncover authorship traces relevant to legislative studies, political communication, and policy research.

1 Introduction

Stylometry is a quantitative text analytical technique historically reserved for verifying authorship in disputed literary cases (Stamatatos, 2009). Perhaps the most famous modern application was the forensic identification of J.K. Rowling as the true author of the crime novel The Cuckoo's Calling, unmasking her pseudonym "Robert Galbraith" through distinct syntactic fingerprints (Juola, 2015). Yet, despite the origins of quantitative stylometry traced to the identification of Hamilton as the author of twelve disputed Federalist papers (Mosteller and Wallace, 1964), and the explosion of computational text analysis in political science since the turn of the millennium (Grimmer and Stewart, 2013; Wilkerson and Casas, 2017), stylometric approaches have received little to no attention in the field.¹ We argue that neglecting stylometry is a critical oversight, particularly given the increasing opacity surrounding the true authorship of political texts. Political analysis should therefore account for the staff and other contributors who draft speeches, court decisions, laws, and diplomatic documents.

*ORCID: 0000-0002-8355-6914 †ORCID: 0000-0003-2022-6886 ¹For a rare exception, see Airoldi, Fienberg and Skinner, 2007

Our goal is to apply and stress-test classical stylometric approaches in the noisy domain of political communication, stretching their applicability across three distinct directions: from written literary texts to delivered speeches, from long-form documents to short social-media posts, and from English to the morphologically complex non-Indo-European language of Hungarian.

Our first two case studies apply the same algorithm to Congressional Research Service (CRS) reports, focusing on the American Law topic subset, where a small set of named staff analysts author documents that share topic, audience, and a highly formal legal register—a high-homogeneity English-language benchmark. We exploit this corpus in two nested forms. We begin with the single most controlled slice, the short-report series, in which document format and length are held constant alongside topic and register, isolating analyst style as cleanly as the data allow; we then relax the format control and pool the full American Law subset to show that the same analyst signal survives across document formats.

Third, we examine a corpus of Hungarian Ombudsman reports to test whether stylometric methods can recover different authors among official administrative legal texts—a genre written in a highly formal register that typically circulates without named individual authors. These reports, unusually, record the staff rapporteur who drafted each document, allowing us to validate what the method recovers against known authors. We chose Hungarian as it comes from a different language family than most European languages, allowing us to assess whether the approaches tested generalize broadly. We also use a Hungarian language case study, below, testing speech authorship.

Fourth, we aimed to benchmark these methods—most often scrutinized on novella-sized or longer works—on the short-format texts that increasingly define modern political communication. Using Donald Trump's tweets from the Trump Twitter Archive (Brown, 2019), from his campaign launch through Election Day, we leveraged a known hardware distinction: tweets sent from an Android device (hypothesized to be Trump himself) versus an iPhone (hypothesized to be staffers) as a ground-truth proxy for authorship. This served to validate whether the stylometric signal persists in texts limited by character counts.

Our fifth case study sought to determine if stylometric approaches designed for static and written literary texts are applicable to speeches—texts that are convoluted by the "noise" of oral delivery and the editing process inherent to the collaborative nature of speechwriting. We utilized Donald Trump's 2016 campaign speeches, distinguishing between those delivered on and off the teleprompter. This allowed us to test if stylometry can discriminate between the "Institutional Voice" (scripted) and the "Individual Voice" (ad-libbed), and whether inductive clustering could reveal distinct authorial hands within the scripted corpus.

Finally, to examine cross-linguistic generalizability and test the method's inductive capacity in the absence of a validated ground truth, we applied the approach to a linguistically divergent case: the political speeches of Hungarian Prime Minister Viktor Orbán.

Our findings suggest that while political texts are indeed "messy", stylometry offers significant analytical leverage. We find that the most basic stylistic clusters can effectively be established in both short and long political texts. While clear, individual "speechwriter clusters" did not inductively emerge from the speeches (suggesting a high degree of homogenization in formal addresses), stylometry significantly sharpened the separation between ad-lib delivery and teleprompter speeches and other deductively hypothesized groups (e.g., Android vs. iPhone).

References (21)

  • Whose Ideas? Whose Words? Authorship of Ronald Reagan's Radio Addresses
  • Interpreting Burrows's Delta: Geometric and Probabilistic Foundations
  • Trump Twitter Archive
  • Stylistic Variation on the Donald Trump Twitter Account: A Linguistic Analysis of Tweets Posted between 2009 and 2018
  • Does Size Matter? Authorship Attribution, Small Samples, Big Problem
  • Understanding and Explaining Delta Measures for Authorship Attribution
  • Quantitative Authorship Attribution: An Evaluation of Techniques
  • Text as data: The promise and pitfalls of automatic content analysis methods for political texts
  • Testing Burrows's Delta
  • The Rowling Case: A Proposed Standard Analytic Protocol for Authorship Attribution
  • Computational Methods in Authorship Attribution
  • Seeing data as t-SNE and UMAP do
  • UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction
  • Approaches to sentiment analysis of Hungarian political news at the sentence level
  • URL: https://link.springer.com/article/10.1007/s10579-023-09717-5 (opens the publisher in a new tab)
  • Text analysis of Trump's tweets confirms he writes only the (angrier) Android half
  • Silhouettes: A Graphical Aid to the Interpretation and Validation of Cluster Analysis
  • The Teleprompter Test: Why Trump's Populism Is Not His Own
  • A survey of modern authorship attribution methods
  • Visualizing Data using t-SNE
  • Large-scale computerized text analysis in political science: Opportunities and challenges