A legal expert system is a domain-specific expert system that uses artificial intelligence to emulate the decision-making abilities of a human expert in the field of law.[1]: 172 Legal expert systems employ a rule base or knowledge base and an inference engine to accumulate, reference and produce expert knowledge on specific subjects within the legal domain.
It has been suggested that legal expert systems could help to manage the rapid expansion of legal information and decisions that began to intensify in the late 1960s.[2] Many of the first legal expert systems were created in the 1970s[1]: 179 and 1980s.[3]: 928
Lawyers were originally identified as primary target users of legal expert systems.[4]: 3 Potential motivations for this work included:
Some early development work was oriented toward the creation of automated judges.[6]: 386
One of the first use cases was the encoding of the British Nationality Act at Imperial College carried out under the supervision of Marek Sergot and Robert Kowalski. Lance Elliot wrote: "The British Nationality Act was passed in 1981 and shortly thereafter was used as a means of showcasing the efficacy of using Artificial Intelligence (AI) techniques and technologies, doing so to explore how the at-the-time newly enacted statutory law might be encoded into a computerized logic-based formalization." [7]
The authors’ seminal article, “The British Nationality Act as a Logic Program,” published in 1986 in the Communications of the ACM journal, is one of the first and best-known works in computational law, and one of the most widely-cited papers in the field.[8]
In 2021, the Inaugural CodeX Prize was awarded to Robert Kowalski, Fariba Sadri, and Marek Sergot in acknowledgment of their groundbreaking work on the application of logic programming to the formalization and analysis of the British Nationality Act.[9]
Later work on legal expert systems has identified potential benefits to non-lawyers as a means to increase access to legal knowledge.[4]: 4
Legal expert systems can also support administrative processes, facilitate decision making processes, automate rule-based analyses,[10] and exchange information directly with citizen-users.[11]
Rule-based expert systems rely on a model of deductive reasoning that utilizes "if A, then B" rules. In a rule-based legal expert system, information is represented in the form of deductive rules within the knowledge base.[12]
Case-based reasoning models, which store and manipulate examples or cases, hold the potential to emulate an analogical reasoning process thought to be well-suited for the legal domain.[12] This model effectively draws on known experiences our outcomes for similar problems.[13]: 5
A neural net relies on a computer model that mimics that structure of a human brain, and operates in a very similar way to the case-based reasoning model.[12] This expert system model is capable of recognizing and classifying patterns within the realm of legal knowledge and dealing with imprecise inputs.[14]: 18
Fuzzy logic models attempt to create 'fuzzy' concepts or objects that can then be converted into quantitative terms or rules that are indexed and retrieved by the system.[14]: 18–19 In the legal domain, fuzzy logic can be used for rule-based and case-based reasoning models.[15]
While some legal expert system architects have adopted a very practical approach, employing scientific modes of reasoning within a given set of rules or cases, others have opted for a broader philosophical approach inspired by jurisprudential reasoning modes emanating from established legal theoreticians.[1] : 183
Some legal expert systems aim to arrive at a particular conclusion in law, while others are designed to predict a particular outcome. An example of a predictive system is one that predicts the outcome of judicial decisions, the value of a case, or the outcome of litigation.[3]: 932
Many forms of legal expert systems have become widely used and accepted by both the legal community and the users of legal services.[16]
The inherent complexity of law as a discipline raises immediate challenges for legal expert system knowledge engineers. Legal matters often involve interrelated facts and issues, which further compound the complexity.[5]: 4 [6]: 386
Factual uncertainty may also arise when there are disputed versions of factual representations that must be input into an expert system to begin the reasoning process.[5]: 4
The limitations of most computerized problem solving techniques inhibit the success of many expert systems in the legal domain. Expert systems typically rely on deductive reasoning models that have difficulty according degrees of weight to certain principles of law or importance to previously decided cases that may or may not influence a decision in an immediate case or context.[12]
Expert legal knowledge can be difficult to represent or formalize within the structure of an expert system. For knowledge engineers, challenges include:
Creating a functioning expert system requires significant investments in software architecture, subject matter expertise and knowledge engineering. Faced with these challenges, many system architects restrict the domain in terms of subject matter and jurisdiction. The consequence of this approach is the creation of narrowly focused and geographically restricted legal expert systems that are difficult to justify on a cost-benefit basis.[5]: 5
Current applications of AI in the legal field utilize machines to review documents, particularly when a high level of completeness and confidence in the quality of document analysis is depended upon, such as in instances of litigation and where due diligence play a role.[18] Among the numerically most quantifiable advantages of AI in the legal field are the time and money saving impact by freeing lawyers from having to spend inordinate amounts of their valuable time on routine tasks, aiding in setting free lawyers’ creative energy by reducing stress.[18] This in turn increases the rate of case load reduction by accomplishing better results in less time, which unlocks potential additional revenue per unit of time spend on a case.[18] The cost of setting up and maintaining AI systems in law is more than offset by the attained savings through increased efficacy; unbalanced cost can be assigned to clients.[18]
Legal expert systems may lead non-expert users to incorrect or inaccurate results and decisions. This problem could be compounded by the fact that users may rely heavily on the correctness or trustworthiness of results or decisions generated by these systems.[19]
ASHSD-II is a hybrid legal expert system that blends rule-based and case-based reasoning models in the area of matrimonial property disputes under English law.[13]: 49
CHIRON is a hybrid legal expert system that blends rule-based and case-based reasoning models to support tax planning activities under United States tax law and codes.[20]
JUDGE is a rule-based legal expert system that deals with sentencing in the criminal legal domain for offences relating to murder, assault and manslaughter.[21]: 51
Legislate is a knowledge graph powered contract management platform which applies legal rules to generate lawyer-approved contracts.[22]
The Latent Damage Project is a rule-based legal expert system that deals with limitation periods under the (UK) Latent Damage Act 1986 in relation to the domains of tort, contract and product liability law.[23]
Split-Up is a rule-based legal expert system that assists in the division of marital assets according to the (Australia) Family Law Act (1975).[24]
SHYSTER is a case-based legal expert system that can also function as a hybrid through its ability to link with rule-based models. It was designed to accommodate multiple legal domains, including aspects of Australian copyright law, contract law, personal property and administrative law.[21]
TAXMAN is a rule-based system that could perform a basic form of legal reasoning by classifying cases under a particular category of statutory rules in the area of law concerning corporate reorganization.[25]: 837
Catala is a french domain-specific programming language designed for deriving correct-by-construction (as assured by formal methods) implementations from legislative texts. It is currently maintained by the INRIA.[26]
There may be a lack of consensus over what distinguishes a legal expert system from a knowledge-based system (also called an intelligent knowledge-based system). While legal expert systems are held to function at the level of a human legal expert, knowledge-based systems may depend on the ongoing assistance of a human expert. True legal expert systems typically focus on a narrow domain of expertise as opposed to a wider and less specific domain as in the case of most knowledge-based systems.[5]: 1
Legal expert systems represent potentially disruptive technologies for the traditional, bespoke delivery of legal services. Accordingly, established legal practitioners may consider them a threat to historical business practices.[5]: 2
Arguments have been made that a failure to take into consideration various theoretical approaches to legal decision making will produce expert systems that fail to reflect the true nature of decision making.[1]: 190 Meanwhile, some legal expert system architects contend that because many lawyers have proficient legal reasoning skills without a sound base in legal theory, the same should hold true for legal expert systems.[21]: pp.6–7
Because legal expert systems apply precision and scientific rigor to the act of legal decision-making, they may be seen as a challenge to the more disorganized and less precise dynamics of traditional jurisprudential modes of legal reasoning.[25]: 839 Some commentators also contend that the true nature of legal practice does not necessarily depend on analyses of legal rules or principles; decisions are based instead on an expectation of what a human adjudicator would decide for a given case.[3]: 930
Since 2013, there have been significant developments in legal expert systems. Professor Tanina Rostain of Georgetown Law Center teaches a course in designing legal expert systems.[27] Open-source platforms like Docassemble and companies such as Neota Logic, Logic Programming Associates, Berkely Bridge, Oracle and Checkbox have begun to offer artificial intelligence and machine learning-based legal expert systems.[28][29]
More recently, the world of legal expert systems has collided with the world of low-code no-code products. In its article entitled 'No Code and Lawyers', the NoCode Journal[30] mentions tools such as Neota Logic, VisiRule, Berkeley Bridge, BRYTER and Josef as all being used within the legal sector for a variety of purposes including Self-Service Legal and Policy Advice, Document Drafting, Document Automation, New Business Intake and Analysis, Expert Decisioning, Business Process Automation and other use cases.[citation needed]