Legal informatics
Legal informatics is the study and use of information science (the study of how information is organized, stored, found, and used) and technology in law. It looks at how computers store, find, structure, and analyze legal information, such as statutes (laws passed by a legislature), court decisions, and contracts. It also looks at what these tools change about legal work.[1][2]
The field's tools include:
- legal search services
- standard formats for legal documents
- programs that turn rules from legislation into code
- machine learning systems that sort documents or predict outcomes
Early work began around 1960. Researchers at the University of Pittsburgh put the full text of state statutes on a computer and searched it.[3]
Scope and definitions
Legal informatics has no single agreed definition. Erdelez and O'Hare (1997) started from the American Library Association's definition of informatics, which covers the structure and properties of information and the use of technology to organize, store, find, and share it. Legal informatics, in their view, applies informatics to the legal setting, including law offices, courts, law schools, and the people who use legal information.[2]
Ron Dolin offers a definition based on biomedical informatics (the use of information science and technology in health care and medical research). In his words, legal informatics is "the science of information as applied to or studied in the context of law." He describes it as the underlying computer methods of legal technology.[4]
Definitions vary. Some also include the impact of technology on law, how people interact with legal software, and the economics of innovation, and different regions of the world define the field differently.[4]
Several nearby fields are easy to confuse with it.
| Field | What it studies |
|---|---|
| Legal informatics | Applying information and communication technology to law[2] |
| Information technology law | The law that governs the use of information technology[2] |
| Legal technology | The tools themselves; legal informatics is their underlying computer methods[4] |
| Jurimetrics | Scientific, mainly statistical, study of law; the term was introduced by Lee Loevinger in 1949[5] |
Why law is an information problem
Law is largely a knowledge business. Until recently that knowledge lived in lawyers' minds and on paper, and legal informatics asks how to organize and use it with computers.[4]
The amount of legal text keeps growing. In litigation, the number of documents that must be checked during discovery (the stage of a lawsuit where each side must hand over relevant documents) grew beyond what people could review by hand, and costs became very high. Tools such as search and duplicate detection entered this work starting in the early 2000s.[4]
The field's main technical topics include:[4][1]
- how legal information is represented and organized
- legal search
- document processing and automation
- standards for legal documents and data
- artificial intelligence and machine learning
- electronic discovery (finding relevant electronic documents for a lawsuit)
Meaning is what makes legal problems hard. In Dolin's framing, borrowed from biomedical informatics, information is "data plus meaning," and problems where meaning must be considered are harder than problems where data can be handled without regard for meaning.[4]
Searching legal text
Legal information retrieval means finding the statutes, cases, or regulations that bear on a question. It is one of the field's clearest successes and changed legal publishing.[2]
The Pittsburgh system
The Pittsburgh System grew out of a hospital law project. In 1956 researchers at the University of Pittsburgh's Health Law Center began a two-year study of hospital law in all 50 states. They found that printed indexes, which reflected the indexer's view of the law, were poorly suited to their questions.[3]
In 1959 John Horty, Nathan Hershey, and Eric Springer decided to use computers. Their "Pittsburgh System" did not rely on indexes. It stored the full text of the legal material and searched the whole text for the user's words.[3]
The system developed in a few steps:[3]
- By spring 1960, programs on the university's IBM 650 could search about 2,200 sections of Pennsylvania hospital law, punched onto cards and stored on magnetic tape.
- The system was shown at the 1960 American Bar Association Annual Meeting in Washington, D.C. This was described as the first demonstration in the United States of a working legal information retrieval system (a system for finding legal documents relevant to a question).
- By July 1961, a program on an IBM 7070 searched the full Pennsylvania statutes, 31,113 sections on four tape reels.
For the IBM 7070 system, the computer built an alphabetical list of every word except common ones, with each word's exact place by document, line, sentence, and position. Searches could require words to be within three words of each other or exclude words with "but not."[3]
The Pennsylvania legislature used it to update old law. For example, a search for "shilling" and "pence" flagged statutes with these outdated words for revision.[3]
Commercial services
Commercial services followed in the 1970s. Mead Data Central was spun off in February 1970 to focus on legal information, and its LEXIS service launched commercially in 1973.[6]
The two leading services first took opposite approaches to what they stored. Westlaw searched headnotes, which are short summaries of a court decision written by an editor.[6]
| Service | Launched | What it searched at first |
|---|---|---|
| LEXIS | 1973 | The full text of cases and regulations, with no editorial material; results shown with the search term highlighted in its context ("keyword in context") |
| Westlaw | 1975 | Only the headnotes written by West's editors |
Jon Bing judged Westlaw's choice "dubious." Searching only short editorial summaries tends to miss relevant documents, though it may return fewer irrelevant ones.[6] The next subsection gives names to these two kinds of error.
Free access came later. The Legal Information Institute at Cornell Law School, launched in 1992 by Peter Martin and Tom Bruce, helped start a worldwide movement of free online legal information institutes.[6][2]
Measuring search quality
Search quality is usually measured with precision and recall. Precision is the fraction of retrieved documents that are relevant. Recall is the fraction of relevant documents that are retrieved.[7]
Here is precision, is recall, and counts documents in a set. is defined only when at least one document is retrieved, and only when at least one relevant document exists.
For example, a search that returns 8 relevant and 10 irrelevant documents, from a collection holding 20 relevant ones, has and .[7] The two measures trade off: returning every document gives perfect recall but very low precision.[7]
Legal searchers often care most about recall. Professional searchers such as paralegals try to get recall as high as possible and accept fairly low precision to get it.[7] Courts also use recall to judge document review in litigation, as the section on machine learning shows.[4]
Structuring legal documents
Standard formats let computers read and exchange legal documents. They add metadata (data about a document, such as its court and date) and mark up a document's parts so software can find them.
Akoma Ntoso
Akoma Ntoso is an XML vocabulary for parliamentary, legislative, and judicial documents. Version 1.0 became a standard of OASIS, an international standards body, on 29 August 2018.[8]
Its goals are to:[8]
- let courts, parliaments, and government offices anywhere exchange documents
- give them a common data and metadata model so they can share tools
European Case Law Identifier
The European Case Law Identifier (ECLI) gives each court decision a uniform, citable code. In 2011 the Council of the European Union called on countries in the European Union to introduce it, and each country decides whether to use it.[9]
An ECLI has five parts, separated by colons:[10]
- the letters "ECLI"
- the country code
- the code of the court that gave the judgment
- the year of the judgment
- an ordinal number, the decision's own identifier, of up to 25 letters and digits, in a format each country chooses
Germany's Federal Administrative Court gives the example ECLI:DE:BVerwG:2017:250117U9C30.15.0. The last part encodes the date (25 January 2017), the decision type ("U" for a judgment), the case number 9 C 30.15, and a final number that tells apart same-day decisions.[9]
Encoding legislation as rules
Some legislation reads almost like a program, so researchers have tried writing it as one. A program written from a statute can then answer questions such as whether a given person qualifies for a benefit.
The British Nationality Act program
A well-known early example is "The British Nationality Act as a Logic Program" (1986) by Sergot, Sadri, Kowalski, Kriwaczek, Hammond, and Cory.[11] It wrote the British Nationality Act 1981 in Prolog, a logic programming language.[12]
The authors wrote section 1(1) of the act as this rule:[11]
x acquires British citizenship on date y by sect. 1.1
if x was born in the U.K.
and x was born on date y
and y is after or on commencement
and x has a parent who qualifies under 1.1 on date y
Here "commencement" means the date the act took effect.[11]
Laws often state a general rule followed by a list of exceptions. The authors found that negation as failure (treating a fact as false if it cannot be proved) handled these exceptions and most other negation in the act.[11]
The act's rule for abandoned infants needs default reasoning, which draws a conclusion when facts are missing and withdraws it if new facts contradict it. A child found abandoned in the United Kingdom may be a citizen because its parents are unknown. If the parents are later found and neither was a citizen nor settled in the country, that conclusion must be withdrawn, which makes the reasoning non-monotonic.[11]
The authors noted that the act's drafters did not seem to have foreseen this case, as the act has no provision for it.[11] Translating a law into formal rules can expose gaps like this.
Later work
The same group then tried a much larger law. In a UK government project, 90% of the 600-page Supplementary Benefit legislation was coded in two months, though the work was done without supervision and not evaluated.[12]
More recent work builds languages for this purpose. Catala, introduced in 2021, is a programming language designed so that statutory law can be translated directly into an executable program. Its authors tested it on part of the US federal income tax and on French family benefits, and found a bug in the official implementation.[13]
Reasoning with cases
Much legal reasoning compares a new dispute with past decisions, called precedents. Case-based reasoning systems try to model this.
HYPO
HYPO, built by Edwina Rissland and Kevin Ashley in the 1980s, worked in US trade secret law. Its authors call it the first true case-based reasoning system in the legal domain, because, unlike earlier systems that used examples, it used actual precedents.[14]
HYPO's key idea was the dimension. A dimension is a common fact pattern where changing the facts makes one side's claim stronger or weaker.[14] For example, the more times a plaintiff disclosed its supposed secret, the weaker its claim that the defendant took it.
HYPO carried out the whole sequence of steps, drawing on its case base (the collection of past cases the system uses):[14]
- analyze the new case
- retrieve relevant cases from its case base
- rank them by how closely they match
- pick the best cases for each side
- build a "3-ply" argument of point, counterpoint, and rebuttal
- test each side's strengths and weaknesses with hypotheticals (made-up variations of real cases)
Rules and cases together
At the first International Conference on AI and Law in 1987, rule-based and case-based approaches were presented as rivals. By 2012, researchers in the field described them as approaches that work together.[12] Later systems such as CABARET combined HYPO-style case reasoning with rule-based reasoning.[14]
Machine learning in legal practice
This section covers three uses of machine learning in legal work:
- document review in litigation, which courts have approved since 2012[15]
- predicting court decisions, mainly by researchers[16]
- legal research and drafting with large language models[17]
Technology-assisted review
Technology-assisted review (also called predictive coding) uses machine learning to sort documents for discovery. In Da Silva Moore v. Publicis Groupe (2012), a federal court in New York approved it for a case with over three million electronic documents and wrote that its opinion appeared to be the first to approve computer-assisted review.[15]
The court described the workflow, which starts from a "seed set," an initial sample of documents that lawyers label to train the software:[15]
- A senior lawyer, or a small team, reviews and codes the seed set of documents as relevant or not.
- The software learns from that coding and predicts coding for the other documents.
- Lawyers review a sample of the computer's suggestions and correct them.
- The software learns from the corrections, and the cycle repeats until its predictions and the reviewers' coding agree closely enough.
Research evidence supported the method. The court cited researchers Maura Grossman and Gordon Cormack, who reported that technology-assisted review can give more accurate results than full manual review, with much less effort.[15]
Shared testing also helped develop such methods. The TREC Legal Track, run at the US National Institute of Standards and Technology from 2006 to 2011, developed and tested them with lawyers and computer scientists working together.[18]
Courts judge such reviews by their results. In Rio Tinto v. Vale, a court said parties can check a review by statistically estimating recall at the end, among other means.[4]
Predicting decisions
Researchers also build models that predict how courts will rule. A 2017 study used a random forest model, with only data available before each decision, to predict the US Supreme Court from 1816 to 2015. It reached 70.2% accuracy on case outcomes and 71.9% on individual justices' votes.[16]
Large language models
Large language models are now used for legal research and drafting, but they can invent false legal content, known as hallucinations. One study found such errors 58% of the time with ChatGPT 4 and 88% with Llama 2, when the models were asked specific, checkable questions about random federal court cases.[17]
These errors have reached courts. In Mata v. Avianca (2023), lawyers filed a brief citing court opinions that did not exist, created by ChatGPT, and kept defending them after their existence was questioned.[19] The court found bad faith and imposed a penalty of 5,000 US dollars.[20]
History
The key dates trace a path from search to rules, cases, and machine learning.
| Year | Event |
|---|---|
| 1949 | Lee Loevinger publishes "Jurimetrics: The Next Step Forward"[5] |
| 1959 | Pittsburgh researchers conceive full-text legal search; the journal Modern Uses of Logic in Law begins (renamed Jurimetrics in 1966)[3][5] |
| 1960 | Pittsburgh System shown at the American Bar Association Annual Meeting[3] |
| 1961 | Full Pennsylvania statutes searchable by computer[3] |
| 1973 | LEXIS launches commercially[6] |
| 1975 | West launches Westlaw[6] |
| 1986 | British Nationality Act logic program published[11] |
| 1987 | First International Conference on AI and Law, Boston[12] |
| 1988 | Annual JURIX conferences begin in Europe[12] |
| 1992 | Cornell's Legal Information Institute launches; the journal Artificial Intelligence and Law first appears[6][12] |
| 2012 | Da Silva Moore approves technology-assisted review[15] |
| 2018 | Akoma Ntoso 1.0 becomes an OASIS standard[8] |
| 2023 | Mata v. Avianca sanctions lawyers for AI-invented citations[19] |
Paliwala names early pioneers in the United States and Europe:[2]
- jurimetrics: Hans Baade, Glendon Schubert, and Layman Allen
- legal retrieval: John Horty
- United Kingdom: Colin Tapper
- Sweden: Peter Seipel
- Italy: Vittorio Novelli
Community and institutions
The field has its own conferences, societies, and journals:[12][5][4]
- the International Conference on AI and Law (ICAIL), held every odd-numbered year since 1987
- the JURIX conferences, held each year since 1988
- the International Association for AI and Law, which first met in 1991
- the journals Artificial Intelligence and Law (from 1992) and Jurimetrics (from 1959 under an earlier name)
- the textbook Legal Informatics (Cambridge University Press, 2021), edited by Daniel Martin Katz, Ron Dolin, and Michael J. Bommarito
Dolin compares the field with biomedical informatics, which has mature academic programs and career paths. He argues that legal informatics has received too little formal academic treatment so far.[4]
Limits and debates
Uneven results
Results have been uneven. Paliwala notes that legal informatics has succeeded where technology had already changed society in general, such as business practice and information retrieval, but has done less well at changing the substance of legal work, including legal education.[2]
In 2010, De Mulder and colleagues wrote that jurimetrics, the study of law based on observed evidence, "has never really come into existence" as a major discipline.[5]
Critiques of formalization
Critics point to the nature of law itself. Philip Leith argued that legal expert systems failed because they assumed lawyers' knowledge could be easily formalized as rules, when lawyers' expertise is of a different kind.[2]
Fairness concerns
There are also concerns about fairness. Dolin notes that technology brings efficiency and scale, but its mechanical or statistical way of working may reduce the room for exceptions, urgency, and empathy that are core parts of law.[4]
References
- legal informatics, Wex, Legal Information Institute, 2024.
- A History of Legal Informatics: An Introduction to the Special Issue, Abdul Paliwala, European Journal of Law and Technology, 2010.
- Pioneers in Computerized Legal Research: The Story of the Pittsburgh System, Tina Batra Hershey and Donald Burke, Pittsburgh Journal of Technology Law and Policy, 2018.
- Legal Informatics, Ron A. Dolin, Harvard Law School Center on the Legal Profession, 2021.
- Jurimetrics Please!, Richard De Mulder, Kees van Noortwijk, and Lia Combrink-Kuiters, European Journal of Law and Technology, 2010.
- Let there be LITE: A Brief History of Legal Information Retrieval, Jon Bing, European Journal of Law and Technology, 2010.
- Evaluation of unranked retrieval sets, Christopher Manning, Prabhakar Raghavan, and Hinrich Schütze, Introduction to Information Retrieval, Cambridge University Press, 2008.
- Akoma Ntoso Version 1.0, OASIS Open, 2018.
- ECLI, Federal Administrative Court of Germany (Bundesverwaltungsgericht).
- European Case Law Identifier (ECLI), European Commission, Directorate-General for Justice and Consumers, data.europa.eu.
- The British Nationality Act as a Logic Program, M. J. Sergot, F. Sadri, R. A. Kowalski, F. Kriwaczek, P. Hammond, and H. T. Cory, Communications of the ACM, 1986.
- A History of AI and Law in 50 Papers: 25 Years of the International Conference on AI and Law, Trevor Bench-Capon et al., Artificial Intelligence and Law, 2012.
- Catala: A Programming Language for the Law, arXiv, 2021.
- Case-based reasoning and law, Edwina Rissland, Kevin Ashley, and L. Karl Branting, Knowledge Engineering Review, 2005.
- Da Silva Moore v. Publicis Groupe, Opinion and Order, US District Court for the Southern District of New York, 2012.
- A general approach for predicting the behavior of the Supreme Court of the United States, PLOS ONE, 2017.
- Large Legal Fictions: Profiling Legal Hallucinations in Large Language Models, arXiv, 2024.
- An Uncommon Task: Participatory Design in Legal AI, arXiv, 2022.
- Mata v. Avianca, Inc., Opinion and Order on Sanctions, US District Court for the Southern District of New York, 2023.
- Mata v. Avianca, Inc., 678 F.Supp.3d 443, UC Berkeley School of Law (reprint), 2023.
