AI stylometry is the quantitative, statistical analysis of linguistic style patterns to attribute authorship to an anonymous document. Every writer leaves a unique linguistic fingerprint behind. Just as a detective lifts physical prints from a crime scene, computer scientists use machine learning to extract your exact “Authorial DNA” from text.
Historically, manual stylometry required researchers to count word lengths by hand. Augustus de Morgan first suggested this approach back in 1851. But modern computational stylometry hands that tedious work over to deep neural networks and machine learning classifiers like Random Forest and Support Vector Machines. These algorithms process huge datasets instantly, comparing an anonymous draft against a database of known writers to spit out a highly accurate probability score.
The Core Mechanics: Decoding Your ‘Authorial DNA’
Algorithms do not read text the way you and I do. They rip sentences apart and measure multiple specific layers of data.
- Lexical Features: Models count the exact frequency of specific words and character sequences. They measure vocabulary richness and calculate the average sentence length.
- Syntactic and Semantic Habits: Your brain favors specific sentence structures. Do you lean on the passive voice? Do you have an unusual way of placing conjunctions or articles? The AI logs all of it.
- Structural Quirks: This includes your specific use of punctuation, capitalization, whitespace, and even recurring typographical errors.
But the real secret weapon of stylometry is something called “function words.” Most people assume AI looks for unique topical vocabulary. It actually looks for words like the, and, of, and in. Authors use these filler words unconsciously. Because you do not think about them, they are incredibly difficult to fake or manipulate. You naturally drop them into sentences at a highly specific, mathematical rate.
Famous Unmaskings: From Novelists to Cryptographers
Stylometry is not just a theoretical lab experiment. It regularly pulls the masks off very prominent figures.
In 2013, an anonymous tip suggested that J.K. Rowling secretly wrote the debut crime novel The Cuckoo’s Calling under the pseudonym Robert Galbraith. The Sunday Times investigated. They enlisted computer scientist Patrick Juola, who used specific Java-based stylometry software alongside Peter Millican’s Signature tool. They ran the novel against Rowling’s past work and texts from other popular crime writers. The algorithms returned a near-perfect statistical match. Confronted with the data, Rowling admitted she wrote the book.
The tech is equally famous in the cryptocurrency community. While modern crypto analysts might track a Vitalik Buterin AI challenge, earlier detectives used stylometric analysis on the anonymously published 2008 Bitcoin whitepaper. Researcher Skye Grey conducted an analysis of the Bitcoin whitepaper to compare its linguistic patterns against public blog posts. Grey found direct stylistic matches pointing to cryptography professor Nick Szabo, though Szabo denied being Satoshi Nakamoto.
And decades before AI automated the process, traditional forensic linguistics laid the groundwork, including the apprehension of the Unabomber in 1996. Investigators compared the Unabomber Manifesto against Theodore Kaczynski’s personal letters to secure his arrest.
Catching ChatGPT and AI Ghostwriters
Now that Large Language Models (LLMs) like ChatGPT and Gemini are generating millions of words daily, stylometry is pivoting to catch machines rather than humans.
Researchers W. Zaitsu and M. Jin successfully trained AI classifiers to achieve 99.8% accuracy in distinguishing human-written Japanese public comments from those generated by seven different LLMs, according to a 2025 study in PLOS One. The system did this primarily by analyzing phrase patterns and those exact same function-word counts.
It goes deeper than standard text. A 2025 arXiv study by He et al. demonstrated that stylometry can analyze compiled C programs and source code to identify the exact AI that wrote it. Using models like CodeT5, they achieved up to 97.56% accuracy in attributing code back to its specific source family, such as distinguishing GPT-4 output from GPT-4o output.
Alternative Methods: Adversarial Stylometry and Privacy Tools
Because people leave an enormous textual footprint online across emails and social media, stylometry creates a severe privacy risk. Whistleblowers, dissidents, and activists rely on anonymity to survive. When a simple algorithm can connect an anonymous leak to a private email address, people look for ways to hide.
This is where adversarial stylometry comes in. It is the practice of deliberately altering your writing style to evade AI detection without changing the actual meaning of your text. Researchers at Drexel University’s Privacy, Security and Automation Lab (PSAL) developed open-source tools to help.
They built JStylo to analyze text and find the writer’s fingerprint. Then they built Anonymouth, an application that acts as a reverse stylometry tool. It suggests specific edits to scrub the text of identifying markers. Another common tactic is round-trip machine translation, where an author translates text through multiple languages and back to English. Even then, researchers note that stubborn syntax quirks often survive the translation loop.
These privacy debates are making their way into courtrooms. Legal scholars debate whether an individual’s writing style qualifies as biometric data. Under frameworks like the GDPR, behavioral traits processed through specific technological means to identify a natural person are strictly regulated, leading to intense legal analysis of biometric data as text harvesting becomes more common.
Frequently Asked Questions
Can AI stylometry tell if a document was written by ChatGPT or a human?
Yes. Stylometry easily distinguishes between machine-generated and human-written text. A 2025 PLOS One study analyzing Japanese public comments found that AI classifiers could differentiate human authorship from seven major language models with 99.8% accuracy just by tracking phrase patterns and function words.
Can you hide your identity from stylometry algorithms?
It is possible, but you have to work at it. Authors use “adversarial stylometry” to mask their habits. Free software tools like Drexel University’s Anonymouth act as reverse stylometry agents. They scan your draft and suggest specific structural edits to wash away your linguistic fingerprint.
Is writing style considered biometric data?
Legal experts argue that it meets the criteria under privacy laws like the EU’s GDPR. Because writing style is a behavioral trait mathematically analyzed by AI to uniquely identify a living person, privacy advocates argue it should receive the same strict protections as facial recognition or fingerprint data.
How did stylometry unmask J.K. Rowling’s pseudonym?
When J.K. Rowling published a crime novel under the fake name Robert Galbraith, computer scientists ran the text through Java-based stylometric software. The algorithms compared the new book’s sentence structures, word lengths, and Latin phrase usage against her known works. It returned a near-perfect statistical match.

