Law Smells: Defining and Detecting Problematic Patterns in Legal Drafting
Corinna Coupette, Dirk Hartung, Janis Beckedorf, Maximilian B\"other,, Daniel Martin Katz

TL;DR
This paper introduces the concept of law smells, patterns in legal texts that threaten clarity, and develops methods to detect them, demonstrating their application on the US Code to improve legal drafting quality.
Contribution
It pioneers the study of law smells, creating a taxonomy and proposing text-based and graph-based detection methods for legal texts.
Findings
Law smells can be systematically identified in legal texts.
Detection methods are effective on the US Code.
The approach improves legal drafting quality.
Abstract
Building on the computer science concept of code smells, we initiate the study of law smells, i.e., patterns in legal texts that pose threats to the comprehensibility and maintainability of the law. With five intuitive law smells as running examples - namely, duplicated phrase, long element, large reference tree, ambiguous syntax, and natural language obsession -, we develop a comprehensive law smell taxonomy. This taxonomy classifies law smells by when they can be detected, which aspects of law they relate to, and how they can be discovered. We introduce text-based and graph-based methods to identify instances of law smells, confirming their utility in practice using the United States Code as a test case. Our work demonstrates how ideas from software engineering can be leveraged to assess and improve the quality of legal code, thus drawing attention to an understudied area in the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Artificial Intelligence in Law · Hate Speech and Cyberbullying Detection
MethodsTest
