HackerPapers

arXiv:2311.04911cs.CL

From Text to Structure: Using Large Language Models to Support the Development of Legal Expert Systems

Samyar Janatian, Hannes Westermann, Jinzhe Tan, Jaromir Savelka, Karim Benyekhlef

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

Abstract

Encoding legislative text in a formal representation is an important prerequisite to different tasks in the field of AI & Law. For example, rule-based expert systems focused on legislation can support laypeople in understanding how legislation applies to them and provide them with helpful context and information. However, the process of analyzing legislation and other sources to encode it in the desired formal representation can be time-consuming and represents a bottleneck in the development of such systems. Here, we investigate to what degree large language models (LLMs), such as GPT-4, are able to automatically extract structured representations from legislation. We use LLMs to create pathways from legislation, according to the JusticeBot methodology for legal decision support systems, evaluate the pathways and compare them to manually created pathways. The results are promising, with 60% of generated pathways being rated as equivalent or better than manually created ones in a blind comparison. The approach suggests a promising path to leverage the capabilities of LLMs to ease the costly development of systems based on symbolic approaches that are transparent and explainable.

arXiv comments
To be published in the proceedings of the 36th International Conference on Legal Knowledge and Information Systems (JURIX 2023). Code and prompt available at https://github.com/samyarj/JCAPG-JURIX2023
Journal reference
DOI
Subjects
cs.CLComputation and Language cs.AIArtificial Intelligence cs.HCHuman-Computer Interaction

On Hacker News

Linked by 1 identifiable commenter in 1 comment across 1 thread, from Mar 2025 to Mar 2025.

Comments linking this paper, per year.

Discussed in comments1 thread

    • Really fun to see this shared here! It is one of the most famous examples of rule-based reasoning in the field of AI & Law. The other option is case-based reasoning, where the starting point is cases - see e.g. HYPO [0]. Rule-based reasoning can be very powerful, as…

      HannesWesView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.