Structured Four-Stage Legal Translation: From Natural-Language Traffic Rules to PROLOG
May Myo Zin, Wachara Fungwacharakorn, Ken Satoh, Katsumi Nitta
Abstract
Traffic regulations are written for human interpretation and therefore rely on shared background knowledge and flexible phrasing, which inherently introduce ambiguity, context dependence, and semantic underspecification. These linguistic characteristics conflict with the precision required by computational reasoning engines such as Prolog, which demand explicit logical structure. This study evaluates two baseline translation approaches, Natural Language to Prolog () and Logical English to Prolog (), and introduces a new reasoning-guided translation framework called Structured Four-Stage Legal Translation (). The proposed S4L framework performs semantic role extraction, scene completion, logical mapping, and Prolog rule generation within a single guided prompt, enabling direct translation of raw traffic rules into executable logic without human intervention. A benchmark consisting of twenty real-world traffic rules was used to evaluate each approach in terms of syntactic validity, semantic correctness, and logical completeness. achieves the highest accuracy, correctly formalizing 75 percent of the rules, while reaches 60 percent and reaches 55 percent. Qualitative analysis further shows that S4L captures implicit causal relations, deontic modality, and exception structure more reliably than the baselines. These results demonstrate that structured reasoning prompts can substantially improve the reliability of natural-language-to-logic translation for legal and safety-critical applications.
Create a lesson
Metadata
- Comments
- In Proceedings of the International Workshop on Translating Natural Legal Language into Formal Representations (NLL2FR 2025)
Related papers
Which LLM is Best for Translating Natural Language Goals to PDDL
Shared title terminologycs.AITomas Balyo, Lukas Chrpa, G. Michael Youngblood
The Communication Bottleneck: A Round-Trip Study of Tree-Structured Expression Serialization in Language Models
Shared title terminologycs.AIXavier Suau, Alex Ferrando de las Morenas, Luca Zappella et al.
ProcessLight: Process Supervision for Large Language Model Based Traffic Signal Control
Shared title terminologycs.AIHuaitao Zhao, Tianlong Zhou, Weijie Wang et al.
GaokaoMathGen: Chinese Gaokao Mathematics Finale Problem Generation Controlled by Latent Reasoning Structures
Shared title terminologycs.AIQian Chen, Kun Zhu, Zhongyi Wang et al.
SciFig2Data: A Workflow for Recovering Structured Data from Scientific Figures
Shared title terminologycs.AIXinhe Wu, Yicheng Ye, Yadong Jin
PRETZEL: A Benchmark for Cyclic Peptide Structure Prediction
Shared title terminologycs.AIYongchan Hong, Zihang Fang, Mukta Ubale et al.