The Rowling-Galbraith Mystery: Testing Stylometry with Burrows’ Delta

●1 ●10 ●40
calendar_today • schedule4 min read

If you've ever been curious about whether a computer can really tell who wrote a book – and whether that evidence holds up under scrutiny – this episode is for you. In this installment of In-Depth with Academia, we dive into one of the most famous modern authorship puzzles: was J.K. Rowling really the writer behind Robert Galbraith's The Cuckoo's Calling? The case made headlines in 2013, but behind the media frenzy lay a serious computational question: can stylometric methods like Burrows' Delta and the imposters algorithm reliably identify an author when genre, time period, and choice of comparison texts are taken into account? The video walks through the original investigation, where experts like Peter Millican and Patrick Juola used stylometric techniques to compare Galbraith's novel against Rowling's known works and other contemporary crime writers. Their findings pointed strongly to Rowling, and she eventually confirmed the authorship. But the episode doesn't stop there. It takes a critical look at the methodology, highlighting a major flaw in many simplified analyses: the choice of "distractor" texts. The stylo package in R includes a built-in dataset for the Rowling-Galbraith case, but it compares the novel to works by authors like C.S. Lewis and J.R.R. Tolkien – who wrote in completely different genres and eras. Only Harlan Coben is a relevant modern crime writer. That skewed selection makes the test too easy, because genre and period heavily influence writing style. To genuinely test Burrows' Delta, researchers built new corpora of contemporary detective novels (by Tana French, Graeme Macrae Burnet, and Stuart Turton) and contemporary fantasy novels (by Freda Warrington, Brandon Sanderson, and Jonathan Stroud). When Delta was applied to these improved datasets, the results were mixed. Against the backdrop of fantasy, Delta clearly linked Rowling and Galbraith. But in the detective corpus, the distances were close – not always the smallest – suggesting that genre conventions can blur the signal. To address this, the imposters algorithm – a more recent method in the stylo package – was used. It compares the target text to multiple candidates and "imposters," producing a probability score for each. In both corpora, the imposters algorithm consistently identified Rowling as the most likely author. However, in the detective set, another author (Graeme Macrae Burnet) also scored high, reminding us that even advanced methods have ambiguities. The takeaway is nuanced: stylometry is powerful, but it's not a magic wand. Its effectiveness depends heavily on careful research design – especially the selection of comparison texts. Delta works well in some scenarios but can mislead if the distractors aren't relevant. The imposters algorithm offers more robust evidence, but even it can't guarantee absolute certainty. Ultimately, the Rowling-Galbraith case is a perfect example of how science and literature can work together to solve mysteries – but also a cautionary tale that some questions may never have a simple, definitive answer.

Why this matters for developers:
this is a hands-on case study in applied NLP and statistical classification, with clear parallels to real-world engineering problems. Burrows' Delta is essentially a distance-based classifier using top frequent words as features – think of it as a lightweight, interpretable alternative to more complex models. The stylo package in R provides a production-ready implementation, but the episode highlights a critical lesson: feature selection (which words to include) and dataset construction (which texts to compare against) are just as important as the algorithm itself. This mirrors challenges in spam detection, plagiarism checking, and even recommendation systems, where negative examples or "distractors" dramatically affect performance. The imposters algorithm, meanwhile, is conceptually similar to one-class classification or anomaly detection – it asks how likely the target is to belong to a candidate set rather than to an imposter set. For developers building authorship attribution tools, forensic text analysis, or any system that compares documents, this episode offers a practical reminder that evaluation corpora must be representative, and that multiple methods often yield more reliable conclusions than a single metric.

What you'll take away:
a clear understanding of two key stylometric methods (Burrows' Delta and the imposters algorithm) and how they differ in sensitivity to corpus composition. You'll learn why genre and time period are confounders that must be controlled for, and how to design a more rigorous comparative analysis by selecting relevant distractors. You'll also see how visualizations – cluster dendrograms and heatmaps – can help interpret ambiguous results. Most importantly, you'll gain a healthy skepticism for any single-number "proof" of authorship, and an appreciation for the importance of thoughtful experimental design in any classification task. Whether you're working on document similarity, author profiling, or just want to understand how computational methods are tested in practice, this case study is both educational and entertaining.

Watch the full episode and ask yourself: if Burrows' Delta can be thrown off by choosing the wrong comparison texts, what does that say about your own evaluation pipelines? Are your benchmarks truly representative, or are they accidentally making your model look better than it really is? And if the imposters algorithm still leaves room for doubt, how confident are you in your own classification systems when the ground truth is uncertain?
Stay curious – and maybe run a quick stylometric test on your team's documentation to see which developer's "voice" stands out the most.

🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.

More Posts

Screaming Frog Review (2026): The Technical SEO Crawler I Audit With | FloxoLab

floxolab - Oct 21

When Stylometry Meets Intellectual History: What "The Bakhtin Circle" Teaches Us About Authorship

nevmenandr - Sep 24

Tuesday Coding Tip 02 - Template with type-specific API

Jakub Neruda - Mar 10

The Zero-Net-Loss Fleet & The Mercenary Squad: A Live AI Economy

DEVPlank - Aug 4

Local-First: The Browser as the Vault

Pocket Portfolio - Apr 20
chevron_left
1.5k Points • 51 Badges
36Posts
9Comments
14Connections
Digital Humanities researcher

Related Jobs

View all jobs →

Commenters (This Week)

1 comment
1 comment
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!