Authorship analysis

Profiling and comparing the writers of texts

Dr Massimiliano Canzi

A ransom note

Did you know: white-crowned sparrows around San Francisco Bay sing in local dialects. A male’s song stays the same from year to year, and populations living close to each other sing recognisably different songs.

Source: Marler & Tamura (1962), The Condor

The devil strip

In the 1970s, a girl disappeared in Illinois, and her parents found a ransom note on their doorstep, written in pencil. It asked for $10,000 in a diaper bag, and went on (Shuy, 2001):

Put it in the green trash kan on the devil strip at corner 18th and Carlson. Don’t bring anybody along. No kops!!

The police asked the linguist Roger Shuy what the note could tell them about its writer.

What Shuy saw

  • “Kan” and “kops” look like the spelling of a poorly educated writer. But the rest of the note, punctuation included, is fully standard. A likely explanation is an educated writer trying to look uneducated
  • A devil strip is the strip of grass between the pavement and the road. The term belongs to the area around Akron, Ohio; people from nearby Cleveland would hardly use it
  • Shuy asked whether any suspect was an educated man from Akron. One was, and he confessed when confronted, although one regional word on its own is thin evidence

Today

  1. Profiling and comparison
  2. Idiolect, and two British cases
  3. Counting words
  4. What can go wrong

Chapters 11 and 12 of Leemann et al. (2024) cover authorship profiling and comparative authorship analysis. These slides draw directly on the original studies.

Profiling and comparison

Did you know: young white-crowned sparrows learn their local dialect from adult males. Birds raised in isolation, without hearing adults, develop much simpler songs.

Source: Marler & Tamura (1964), Science

The same two questions as in speech

Question Spoken evidence Written evidence
Who could have produced this? Speaker profiling (session 3) Authorship profiling
Did this person produce it? Speaker comparison (session 4) Comparative authorship analysis

With a closed set of candidates, comparison becomes attribution: which of these people wrote the text? With a single candidate, it is often called verification.

What a text can give away

  • Region shows in words like devil strip, in spellings like colour or color, and in local grammar
  • A first language can show through errors and structures carried over from it
  • Education and training show in spelling, punctuation, vocabulary and the conventions of a profession
  • Age and gender appear only as tendencies in large samples

Profiling by machine

Schler et al. (2006) analysed blogs by 19,320 authors, balanced for gender within each age group.

Simulated values, in the direction of the published results: the features that separate male from female bloggers also separate older from younger ones.

Limits of profiling

  • Classifiers trained on thousands of texts guess gender or age group well above chance, and still get many individuals wrong
  • A forensic text is usually short and written for one purpose, and writers can disguise their style, as the “kan” and “kops” of the ransom note show

A profile can shorten a list of suspects, as it did with the devil strip. Identifying the writer takes a comparison with texts of known authorship.

Idiolect

Did you know: female white-crowned sparrows do not normally sing. When researchers gave females testosterone, they sang, and their songs showed that they had learned the dialect too.

Source: Konishi (1965), Zeitschrift für Tierpsychologie

Everyone has their own version

Linguists use idiolect for the version of a language that one person knows and uses (Coulthard, 2004).

  • Whether every idiolect is unique is hard to prove. Casework needs two weaker properties: the writer is fairly consistent across their texts, and distinctive among the other likely writers (Grant, 2010)
  • Nini (2023) proposes a theory grounded in cognitive linguistics: each person entrenches their own set of linguistic units, and the combination is individual. He tests it in computational experiments that report likelihood ratios

Jenny Nicholl

Jenny Nicholl, 19, disappeared in North Yorkshire on 30 June 2005. Text messages kept coming from her phone (Grant, 2010).

  • Tim Grant compared the disputed messages with messages known to be hers and with those of her former lover, David Hodgson
  • Jenny wrote my and myself. Hodgson often used the regional me and meself, like the disputed messages, which were closer to his style overall

Hodgson was convicted of her murder on 19 February 2008, partly on DNA evidence, although her body has never been found.

Discussion

Suppose Hodgson had noticed that Jenny wrote myself, and copied it in every message.

  • Which other habits would he have had to imitate to pass as her?
  • Which of them would be hardest to control?

Derek Bentley

In 1952, 19-year-old Derek Bentley was arrested with Christopher Craig after a break-in in Croydon, during which Craig shot a police officer dead. Bentley could not read or write.

  • His signed statement was presented in court as a verbatim record of what he had dictated. He was convicted of murder and hanged in January 1953
  • Coulthard argued that the statement had been produced by question and answer and then written up as a monologue, and that some of its wording belonged to the police officers

“I then”

In a general corpus, then usually comes before the subject (Fox, 1993). Bentley’s statement has Chris Craig and I then caught a bus and Chris then jumped over: an order typical of police reports. In 1998, after a referral partly based on this analysis, the Court of Appeal quashed his conviction.

Counting words

Did you know: between 1969 and 1998, one San Francisco sparrow dialect spread through the city at the expense of its neighbours, and the lowest pitch of the songs rose as traffic noise grew.

Source: Luther & Baptista (2010), Proceedings of the Royal Society B

The Federalist papers

In 1787–88, Alexander Hamilton, James Madison and John Jay published essays in favour of the new US constitution under one pen name, “Publius”. Of the 77 papers that appeared in newspapers, 12 were claimed by both Hamilton and Madison.

  • Sentence length did not help: on average 34.55 words for Hamilton and 34.59 for Madison
  • The historian Douglass Adair noticed that Hamilton wrote while and Madison whilst. Mosteller and Wallace (1963) added more such marker words, including upon and enough, both typical of Hamilton

Upon

Simulated papers, following the pattern Mosteller and Wallace reported. Using Bayesian statistics on dozens of such words, they concluded that Madison wrote all 12 disputed papers.

Why small words?

  • Function words such as the, of, upon and whilst are frequent, so even a short text gives usable counts
  • They change little with the topic. Mosteller and Wallace found stable rates for an, of and upon, but not for words like war or executive
  • Writers choose them with little awareness, so they are harder to control or imitate than vocabulary

Burrows’ Delta

Burrows (2002) proposed a simple distance between a text and each candidate author:

  1. Take the most frequent words in all the texts: Burrows used up to 150, later work up to 800 (Hoover, 2004)
  2. Turn each word’s frequency into a z-score: how far it is from the mean of all texts, in standard deviations
  3. For each candidate, average the absolute differences between their z-scores and those of the disputed text. That average is Delta
  4. The candidate with the smallest Delta is the most similar, and so the likeliest author

Delta in practice

Simulated: four authors with five known texts each, 30 frequent words, and one disputed text written by Author C. The code computes Delta as described.

Robert Galbraith

In 2013, The Cuckoo’s Calling came out as the first novel of one Robert Galbraith. After an anonymous tip, the Sunday Times asked two researchers whether J. K. Rowling had written it.

  • Patrick Juola compared it with Rowling’s The Casual Vacancy and with novels by three British crime writers, Ruth Rendell, P. D. James and Val McDermid (Juola, 2013)
  • He ran four tests: word lengths, the 100 most common words, pairs of adjacent words, and sequences of four characters. Peter Millican ran separate tests

Rowling came out as the most likely author, and she then confirmed that the book was hers.

The Unabomber

Between 1978 and 1995, bombs, many sent by mail, killed three people and injured many more. In 1995, newspapers published the bomber’s manifesto, Industrial Society and Its Future.

  • Linda Patrik, and then her husband David Kaczynski, recognised the style of David’s brother Ted, including the phrase “cool-headed logicians”
  • Ted’s letters and the manifesto both reversed a common idiom: you can’t eat your cake and have it too
  • The FBI analyst James Fitzgerald compared the manifesto with Ted’s known writings. His comparison supported the 1996 search of Ted’s cabin in Montana

What can go wrong

Did you know: during the 2020 lockdown, traffic noise in San Francisco fell to levels of the 1950s. White-crowned sparrows sang more softly, yet their songs carried about twice as far.

Source: Derryberry et al. (2020), Science

Hard cases

  • Short texts, such as text messages or tweets, give few counts for any one feature
  • Genre and register change style: a writer’s emails and reports may differ more than two writers’ emails do. Delta is known to be sensitive to genre
  • The likely author may not be among the candidates at all
  • Texts can be edited or co-written, as Bentley’s statement was by the police
  • People can imitate another person’s style, or disguise their own

How strong is the evidence?

As in speaker comparison, the question is how much more likely the observed features are if the suspect wrote the text than if someone else from the relevant population did.

  • Grant (2007) proposed ways to quantify consistency and distinctiveness in casework, and Nini (2023) reports his results as likelihood ratios, the approach of session 4
  • Reference data are still the weak point: how common is meself among young men in North Yorkshire texting in 2005?

Discussion

  • The devil strip pointed to one suspect. What else would you want to know before acting on a single regional word?
  • Should an authorship analysis that cannot give a likelihood ratio be allowed in court?

Activity

For the next session, in pairs:

  1. Each of you collects 10 of your own text messages or chat messages, with any personal details removed
  2. List five habits in your own messages: spellings, abbreviations, punctuation, greetings, emoji
  3. Swap the lists, then write one new message each in your partner’s style
  4. Give both the real and the imitated messages to another pair. Can they tell which are imitations, and which habits gave them away?

Summary

  • Authorship analysis mirrors forensic phonetics: authorship profiling asks what kind of person wrote a text, comparison asks whether a particular person did
  • Casework relies on a writer’s consistency across texts and distinctiveness from other writers
  • Small words carry a lot of individual information, which Burrows’ Delta and similar methods exploit
  • Short texts, genre differences, disguise and missing candidates all limit what can be concluded
  • As in speaker comparison, the field is moving towards likelihood ratios

References

  • Argamon, S., Koppel, M., Pennebaker, J. W., & Schler, J. (2009). Automatically profiling the author of an anonymous text. Communications of the ACM, 52(2), 119–123.
  • Burrows, J. (2002). ‘Delta’: A measure of stylistic difference and a guide to likely authorship. Literary and Linguistic Computing, 17(3), 267–287.
  • Coulthard, M. (2004). Author identification, idiolect, and linguistic uniqueness. Applied Linguistics, 25(4), 431–447.
  • Fox, G. (1993). A comparison of ‘policespeak’ and ‘normalspeak’: A preliminary study. In J. M. Sinclair, M. Hoey, & G. Fox (Eds.), Techniques of description (pp. 183–195). Routledge.
  • Grant, T. (2007). Quantifying evidence in forensic authorship analysis. International Journal of Speech, Language and the Law, 14(1), 1–25.
  • Grant, T. (2010). Txt 4n6: Idiolect free authorship analysis? In M. Coulthard & A. Johnson (Eds.), The Routledge handbook of forensic linguistics (pp. 508–522). Routledge.
  • Hoover, D. L. (2004). Testing Burrows’s Delta. Literary and Linguistic Computing, 19(4), 453–475.
  • Juola, P. (2013). Rowling and “Galbraith”: An authorial analysis. Language Log, 16 July 2013.

References

  • Leemann, A., Perkins, R., Sullivan Buker, G., & Foulkes, P. (2024). An Introduction to Forensic Phonetics and Forensic Linguistics. Routledge. Chapters 11 and 12.
  • Mosteller, F., & Wallace, D. L. (1963). Inference in an authorship problem. Journal of the American Statistical Association, 58(302), 275–309.
  • Mosteller, F., & Wallace, D. L. (1964). Inference and disputed authorship: The Federalist. Addison-Wesley.
  • Nini, A. (2023). A theory of linguistic individuality for authorship analysis. Cambridge University Press.
  • Schler, J., Koppel, M., Argamon, S., & Pennebaker, J. W. (2006). Effects of age and gender on blogging. In Computational approaches to analyzing weblogs: Papers from the 2006 AAAI Spring Symposium (pp. 199–205). AAAI Press.
  • Shuy, R. W. (2001). DARE’s role in linguistic profiling. DARE Newsletter, 4(3).
  • R v Bentley (deceased) [1998] EWCA Crim 2516.

Sources of the animal facts

  • Derryberry, E. P., Phillips, J. N., Derryberry, G. E., Blum, M. J., & Luther, D. (2020). Singing in a silent spring: Birds respond to a half-century soundscape reversion during the COVID-19 shutdown. Science, 370(6516), 575–579. https://doi.org/10.1126/science.abd5777
  • Konishi, M. (1965). The role of auditory feedback in the control of vocalization in the white-crowned sparrow. Zeitschrift für Tierpsychologie, 22(7), 770–783.
  • Luther, D., & Baptista, L. (2010). Urban noise and the cultural evolution of bird songs. Proceedings of the Royal Society B, 277(1680), 469–473. https://doi.org/10.1098/rspb.2009.1571
  • Marler, P., & Tamura, M. (1962). Song “dialects” in three populations of white-crowned sparrows. The Condor, 64(5), 368–377.
  • Marler, P., & Tamura, M. (1964). Culturally transmitted patterns of vocal behavior in sparrows. Science, 146(3650), 1483–1486. https://doi.org/10.1126/science.146.3650.1483

Slides and code

QR code linking to these slides

These slides

Code and all sessions