Skip to content
ADVERTISEMENT
Sign In
  • Sections
    • News
    • Advice
    • The Review
  • Topics
    • Data
    • Diversity, Equity, & Inclusion
    • Finance & Operations
    • International
    • Leadership & Governance
    • Teaching & Learning
    • Scholarship & Research
    • Student Success
    • Technology
    • Transitions
    • The Workplace
  • Magazine
    • Current Issue
    • Special Issues
    • Podcast: College Matters from The Chronicle
  • Newsletters
  • Virtual Events
  • Ask Chron
  • Store
    • Featured Products
    • Reports
    • Data
    • Collections
    • Back Issues
  • Jobs
    • Find a Job
    • Post a Job
    • Professional Development
    • Career Resources
    • Virtual Career Fair
  • More
  • Sections
    • News
    • Advice
    • The Review
  • Topics
    • Data
    • Diversity, Equity, & Inclusion
    • Finance & Operations
    • International
    • Leadership & Governance
    • Teaching & Learning
    • Scholarship & Research
    • Student Success
    • Technology
    • Transitions
    • The Workplace
  • Magazine
    • Current Issue
    • Special Issues
    • Podcast: College Matters from The Chronicle
  • Newsletters
  • Virtual Events
  • Ask Chron
  • Store
    • Featured Products
    • Reports
    • Data
    • Collections
    • Back Issues
  • Jobs
    • Find a Job
    • Post a Job
    • Professional Development
    • Career Resources
    • Virtual Career Fair
    Upcoming Events:
    An AI-Driven Work Force
    University Transformation: a Global Leadership Perspective
Sign In
Technology

The Professor Who Declared, It’s J.K. Rowling

By Steve Kolowich July 29, 2013
“Nothing that we do is magic,” says Patrick Juola, a computer scientist at Duquesne U., whose computer program analyzed linguistic style to identify a detective novel as having been written, pseudonymously, by Harry Potter’s creator.
“Nothing that we do is magic,” says Patrick Juola, a computer scientist at Duquesne U., whose computer program analyzed linguistic style to identify a detective novel as having been written, pseudonymously, by Harry Potter’s creator.Duquesne U.

Patrick Juola has practiced stylometry, the science of linguistic style, for decades. But he was never famous for it until this month, when he helped unmask the world’s best-known living author.

Mr. Juola, an associate professor of computer science at Duquesne University, was one of two academics enlisted by London’s Sunday Times to confirm a tip that J.K. Rowling, creator of the Harry Potter series, had written a new detective novel under a nom de plume.

To continue reading for FREE, please sign in.

Sign In

Or subscribe now to read with unlimited access for as low as $10/month.

Don’t have an account? Sign up now.

A free account provides you access to a limited number of free articles each month, plus newsletters, job postings, salary data, and exclusive store discounts.

Sign Up

Patrick Juola has practiced stylometry, the science of linguistic style, for decades. But he was never famous for it until this month, when he helped unmask the world’s best-known living author.

Mr. Juola, an associate professor of computer science at Duquesne University, was one of two academics enlisted by London’s Sunday Times to confirm a tip that J.K. Rowling, creator of the Harry Potter series, had written a new detective novel under a nom de plume.

After Ms. Rowling acknowledged the ruse, Mr. Juola found himself caught up in a tale sweeping through the literary world. A digital-humanities field that bridges the gap between academic research and practical science came to sudden prominence. At a time when the Internet has made anonymous writing prevalent and potentially powerful, stylometry could make it easier for officials and others to unmask the authors behind unsigned texts. Conversely, the method could also make it easier for those writers to keep their identities hidden.

The story of how Mr. Juola helped foil Ms. Rowling’s attempt to publish a new novel without the baggage of her boy-wizard legacy suggests a novelistic saga of its own—one of obsession and tireless sleuthing. In fact, Mr. Juola didn’t break a sweat. The heavy lifting was done by a computer program, the Java Graphical Authorship Attribution Program (Jgaap), that he had designed to recognize writing tics undetectable by human readers.

The whole adventure unfolded rather quickly. On July 11, Mr. Juola got an e-mail from Cal Flyn, at The Sunday Times. The professor had been contacted by journalists before, but this time was different. Ms. Flyn did not want an interview; she wanted Mr. Juola to verify that Ms. Rowling was the author of The Cuckoo’s Calling, a novel published this year, to some acclaim, under the name Robert Galbraith.

The case appealed to Mr. Juola, a fan of fantasy literature who, in a recent paper involving anonymous subjects, eschewed the customary John Doe-style aliases in favor of names from J.R.R. Tolkien’s Lord of the Rings. The professor agreed to help. He loaded an electronic version of Cuckoo into Jgaap, along with several other texts, including The Casual Vacancy, Ms. Rowling’s first post-Potter novel. (He chose that rather than a Harry Potter book because Cuckoo, like Vacancy, was written for grown-ups.)

The Duquesne professor then instructed the program to compare the sample texts to the Galbraith text using four variables: word-length distribution; the use of common words like “the” and “of”; recurring-word pairings; and the distribution of “character 4-grams,” or groups of four adjacent characters, words, or parts of words.

The computer analysis took only about a half an hour, says Mr. Juola.

The findings were not unequivocal, but they made a pretty strong case for Ms. Rowling as the author of Cuckoo—at least compared with the three other authors of the sample texts. (There was, of course, no available writing sample from the fictional Mr. Galbraith.) Ms. Rowling’s sample from Vacancy returned either the closest or second-closest match in each of the tests.

Emboldened by Mr. Juola’s findings—and the results of a second stylometric analysis, conducted by Peter Millican, a philosophy professor at the University of Oxford—The Sunday Times challenged Ms. Rowling. She confessed quickly, though reluctantly. The newspaper ran its article that weekend, and by Monday, Mr. Juola had become known as the computer scientist who had found out the fantasy-author-turned-mystery-novelist by doing some detective work of his own.

Stylometry for Everyone

Stylometric analyses have not always been such a breeze. In the early 1960s, the statisticians Frederick Mosteller and David Wallace set out to determine who—Alexander Hamilton, James Madison, or John Jay—had written 12 of the Federalist Papers. That project took three years, despite assistance from what was then considered a high-speed computer at the Massachusetts Institute of Technology.

ADVERTISEMENT

Advances in stylometric theory and computing have made things easier since then. With a tool like Jgaap, a program Mr. Juola wrote and developed over the past decade, “it takes little more time to analyze a set of novels than it does to download them,” he says.

In an era when the Internet has encouraged the proliferation of both digital publishing and anonymity, stylometric analysis stands to become increasingly relevant outside of academe. Stylometric analysis has become not only faster in recent years, says Mr. Juola, but also something that anybody, in theory, can do. The professor has made the Jgaap program available for download, though it requires some expertise to use well. (Mr. Millican, of Oxford, has also made a version of his own stylometric software, called Signature, freely available.)

Literary historians aren’t the only group interested in revealing the authors of unsigned texts. Lawyers are another. Juola & Associates, the Duquesne professor’s private consulting firm, pitches its services to attorneys looking to bring scientific evidence to bear on cases involving disputed documents. Mr. Juola says the firm’s hourly rate runs in the hundreds of dollars.

Applying stylometry outside the realm of literary forensics, however, can be knotty. Mr. Juola and his partners recently worked with a lawyer for a foreign national who had sought political asylum in the United States. To persuade a judge that his client faced government retribution in his home country, the lawyer wanted to prove that the man was the author of several politically charged articles that had been published anonymously on the Web.

ADVERTISEMENT

The analysis proved difficult. Literary whodunits tend to come with a rich, comparable data set and a limited array of possible suspects, while real-world scenarios tend to be less “clean,” says Mr. Juola. In this case, he and his team had to determine—without a list of other possible authors—whether or not the asylum-seeker had written the anonymous articles. For the Cuckoo inquiry, the news reporters had done their homework, compiling a lineup of possible ghostwriters in addition to Ms. Rowling. For the asylum case, the stylometrists had to patch together additional suspects, and samples, by hand.

In the end, Juola & Associates offered what it considered statistically valid evidence that the man had, in fact, written the anonymous essays, and the judge let him stay in the country. But the stylometric detectives were reminded of an important lesson: “Authorship analysis in the field can pose substantially different challenges than in the lab,” wrote Mr. Juola in a summary of the case.

Often, anonymous writers will take pains to avoid being found out, and for them, too, modern stylometry offers help. Even as Mr. Juola has been working to fine-tune technology for unmasking anonymous authors, some of his colleagues are building technology for keeping authors’ identities hidden.

Rachel Greenstadt, an assistant professor of computer science at Drexel University, is one such researcher. She works in “adversarial” stylometry, which exploits blind spots in programs like Jgaap. She is developing a tool, called Anonymouth, that strips an author’s writing of its stylistic markers. Such a tool could be used to give cover to authors who have good reason to remain anonymous, like whistle-blowers and political dissidents.

ADVERTISEMENT

Scientifically, Ms. Greenstadt plays for the same team as Mr. Juola, but the Drexel professor is eager to discuss the limitations of the technology. “Stylometry works really well if nobody’s trying to fool it,” she says. “But if they are, it can be fooled quite effectively, and by people who are not particularly trained.”

Mr. Juola, for his part, harbors no fantasies about his work.

“Nothing that we’re doing is magic,” he says. “What we are doing is the same type of judgment that experts have always done about reading documents and figuring out something about the author—just a lot faster, and more accurate than most.”

We welcome your thoughts and questions about this article. Please email the editors or submit a letter for publication.
Tags
Technology
Share
  • Twitter
  • LinkedIn
  • Facebook
  • Email
About the Author
Steve Kolowich
Steve Kolowich was a senior reporter for The Chronicle of Higher Education. He wrote about extraordinary people in ordinary times, and ordinary people in extraordinary times.
ADVERTISEMENT
ADVERTISEMENT

More News

Illustration of a magnifying glass highlighting the phrase "including the requirements set forth in Presidential Executive Order 14168 titled Defending Women From Gender Ideology Extremism and Restoring Biological Truth to the Federal Government."
Policy 'Whiplash'
Research Grants Increasingly Require Compliance With Trump’s Orders. Here’s How Colleges Are Responding.
Photo illustration showing internal email text snippets over a photo of a University of Iowa campus quad
Red-state reticence
Facing Research Cuts, Officials at U. of Iowa Spoke of a ‘Limited Ability to Publicly Fight This’
Photo illustration showing Santa Ono seated, places small in the corner of a dark space
'Unrelentingly Sad'
Santa Ono Wanted a Presidency. He Became a Pariah.
Illustration of a rushing crowd carrying HSI letters
Seeking precedent
Funding for Hispanic-Serving Institutions Is Discriminatory and Unconstitutional, Lawsuit Argues

From The Review

Football game between UCLA and Colorado University, at Folsom Field in Boulder, Colo., Sept. 24, 2022.
The Review | Opinion
My University Values Football More Than Education
By Sigman Byrd
Photo- and type-based illustration depicting the acronym AAUP with the second A as the arrow of a compass and facing not north but southeast.
The Review | Essay
The Unraveling of the AAUP
By Matthew W. Finkin
Photo-based illustration of the Capitol building dome propped on a stick attached to a string, like a trap.
The Review | Opinion
Colleges Can’t Trust the Federal Government. What Now?
By Brian Rosenberg

Upcoming Events

Plain_Acuity_DurableSkills_VF.png
Why Employers Value ‘Durable’ Skills
Warwick_Leadership_Javi.png
University Transformation: a Global Leadership Perspective
Lead With Insight
  • Explore Content
    • Latest News
    • Newsletters
    • Letters
    • Free Reports and Guides
    • Professional Development
    • Virtual Events
    • Chronicle Store
    • Chronicle Intelligence
    • Jobs in Higher Education
    • Post a Job
  • Know The Chronicle
    • About Us
    • Vision, Mission, Values
    • DEI at The Chronicle
    • Write for Us
    • Work at The Chronicle
    • Our Reporting Process
    • Advertise With Us
    • Brand Studio
    • Accessibility Statement
  • Account and Access
    • Manage Your Account
    • Manage Newsletters
    • Individual Subscriptions
    • Group and Institutional Access
    • Subscription & Account FAQ
  • Get Support
    • Contact Us
    • Reprints & Permissions
    • User Agreement
    • Terms and Conditions
    • Privacy Policy
    • California Privacy Policy
    • Do Not Sell My Personal Information
1255 23rd Street, N.W. Washington, D.C. 20037
© 2025 The Chronicle of Higher Education
The Chronicle of Higher Education is academe’s most trusted resource for independent journalism, career development, and forward-looking intelligence. Our readers lead, teach, learn, and innovate with insights from The Chronicle.
Follow Us
  • twitter
  • instagram
  • youtube
  • facebook
  • linkedin