I'm an amateur writer that happens to be a professional programmer.

I say this because I've recently jumped back into a personal research project in which the goal is to automate the de-anonymization of passages or, more simply, figure out the true author behind an anonymous piece of writing.

In order to do this, I'm looking at the key elements in a person's writing style and looking for patterns that match up to writers and their styles that I've already indexed. The patterns I'm looking for currently are:

  • Word choices & vocabulary
  • Readability score: calculated by the Flesch-Kincaid index (what Microsoft Word uses)
  • Punctuation preferences: whether 1 or 2 spaces are used after a sentence, frequency of exclamation points, commas, etc
  • Sentence structure: where the various elements of a sentence are usually located within that sentence, as well as general sentence length

What other patterns can be used to explicitly define a writing style?

  • Your 1st and 4th points are about computational stylistics--a search on that term will find lots of relevant material. The punctuation aspect is not (but is interesting), and the Flesch-Kincaid index is of very little use for any purpose. Feb 9, 2012 at 11:09
  • 2
    You may also be interested in this question: Is there serious scientific evidence/vindication for the “linguistic fingerprint” concept? Feb 9, 2012 at 11:35
  • @GastonÜmlaut I added Flesch-Kincaid because I've consistently written within a 8.5-9 on the index for years. It seems to me to index things well, based on my own experience, but is there another scale you would recommend?
    – drusepth
    Feb 9, 2012 at 17:03
  • 1
    There's been a lot of work in Forensic Linguistics on the topic of author identification; Language Log has a lot on the subject.
    – jlawler
    Feb 9, 2012 at 17:36

1 Answer 1


The question title asks for ways of defining a writer's unique style, but the body indicates that the aim is to identify authors based on analysis of their writings. The identification of authors based on analysis of their style, known as 'authorship attribution', does not necessarily allow for characterising a 'unique style' as it may be more about statistical differences rather than unique styles. This means that while a human reader may not be able to guess that two pieces were by different authors, statistical calculations based on various measures may be able to detect this with a fair degree of certainty.

Authorship attribution has a long tradition, particularly in theological studies and philology, but has developed many new methods with the advent of natural language processing. Many different metrics have been employed in authorship attribution, such as:

  • word length
  • sentence length
  • character frequencies
  • word frequencies
  • vocabulary richness (various functions)

It's not possible to list all measures as it has been estimated (Rudman, 1998) that over 1,000 different measures had been developed up to that point.

Some useful references are listed below.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.