Computing Crime and Punishment

In 1765, John Ward was hanged for stealing a watch and a hat.

Two years later, Elizabeth Brownrigg was sent to the gallows for torturing a young orphan for weeks, including tying her to a hook, stripping her naked and horsewhipping her until "the blood gushed in torrents from her wounds" and she died.

In those days, British society and its criminal justice system, did not distinguish between violent and nonviolent crimes. Pickpockets and murderers equally deserved the death penalty.

Not so just 60 years later. A murderer might be executed or exiled to Australia, but a pickpocket would probably only pay a fine. Grounds for capital punishment shifted. Violent and nonviolent crimes fell into separate realms.

How did this change happen? Leave it to generations of British bureaucrats to help provide answers.

From 1674 through 1913, court reporters wrote detailed accounts of virtually every trial held at the Central Criminal Court, known as the Old Bailey, where all major criminal cases for Greater London were heard.

A page from the trial data for James Boobier, 65, who was convicted in 1871 of passing counterfeit coins and sentenced to 18 months in prison. Computer analysis of court records in London traces how property crimes and violent crimes came to be punished differently.

The corpus includes 121 million words describing 197,000 trials over 239 years. According to researchers, it represents the largest existing body of transcribed trial evidence for historical crime; it is, they say, the most detailed recording of real speech in printed form anywhere in the world.

Scientists have now carried out a computational analysis of those words showing how the British justice system created new practices for controlling violence. The study, "The Civilizing Process in London's Old Bailey," in The Proceedings of the National Academy of Sciences, is a collaboration between two computer scientists, Simon DeDeo of Indiana University and Sara Klingenstein of the Santa Fe Institute, and a historian, Tim Hitchcock of the University of Sussex in England.

This study demonstrates "an important new way to do historical research," said Brett Bobley, director of digital humanities at the National Endowment for the Humanities. Historians may study collections of individual items - books, old letters or newspapers — but they can't read an entire library; computers, he said, can do just that.

Steven Pinker, the Harvard linguist and author of "The Better Angels of Our Nature: Why Violence Has Declined," said the new study offered a valuable quantitative analysis of a major development: Europe's "civilizing process," in which violence was increasingly deemed unworthy of respectable citizens. Formerly, "cultures of honor" had valued violence as an appropriate response to insults and offenses.

The Old Bailey archive was digitized a decade ago into a free and searchable database (oldbaileyonline.org) in which every defendant's name is tagged by gender, crime, location, the victim's name and address, verdict, and any punishment.

All that information, along with the trial transcripts, constitutes a trove so vast that no one can hold it all in mind — a classic "big data" problem. "What happens when we inflict harm on each other is the most interesting question of criminal law," Dr. DeDeo said, "but the volume of data coming out the system is incomprehensible."

Enter computers, in which words can be represented as mathematical objects and put through algorithms that can discern patterns invisible to a human brain.

"It's a little bit like the big-sky surveys in astronomy," said Dr. DeDeo, who trained in astrophysics before turning to computer science. "Instead of looking at individually interesting galaxies, we could look at hundreds of thousands of galaxies to change our scope of vision."

Like the big data of the cosmos, he said, the Old Bailey proceedings contain "the dark matter of bureaucracy."

To find patterns, the scientists looked at when and how often certain words occurred.

"Say you walk into a trial in 1750 and pick out one word," Dr. DeDeo said. "How much can you learn about what the trial is about? If you hear the word 'kick,' you might associate it with violence, but you could not be certain.

"But by 1850, if you hear the word 'kick,' you would know a lot about what the bureaucracy was going to do," he continued. "With the passage of time, each word carries more information based on accumulating trial data. And this is what we can quantify."

To simplify their task, the researchers turned to the 1911 edition of Roget's Thesaurus, which sorts 26,000 distinct English words into 1,040 numbered categories called synonym sets. For example, words involving love and affection are in the high 800s, money and wealth in the low 800s. "Kick," as in striking a blow, is No. 276, while killing is No. 361.

"The beauty of this," Dr. DeDeo said, "is that for every word we have a number that equates with a meaning" that can be modeled mathematically.

One key finding is the gradual criminalization of violence.

In the early 1700s, violence was considered routine. A trial about theft, Dr. DeDeo said, might include testimony "in which people gouge out each other's eyes, are covered in blood and get killed." But by the 1820s, the justice system was focused more on containing violence — a development reflected not just in language but also in the professionalization of the justice system. "The changes occurred under the radar," said Dr. Hitchcock, the British historian.

One such change revealed by the study is that trial records became medicalized. In the mid-19th century, doctors start showing up in large numbers to give evidence and evaluate causes of death.

Over time, the transcripts have more superlatives and intensifiers — words like "very," "so much," "most" — in reference to acts of violence. Exaggeration is normal in a courtroom, but violence brings out more hyperbole; if someone steals your wallet, you are upset, but if someone beats you up, you are likely to use stronger language.

The Old Bailey transcripts ended in 1913 as publication costs grew prohibitive and newspapers took over the role of covering trials.

Analysis of that coverage, Dr. DeDeo said, may shed light on how society's attitudes toward violence evolved over the 20th century, notable both for its wars and mayhem and for the easing of punishments like the death penalty, which has not been carried out in Britain since 1964.