mlsanityData to 14 Oct 2026

Structured Four-Stage Legal Translation: From Natural-Language Traffic Rules to PROLOG

arXiv 2609.20334 ↗First posted 17 Sep 2026cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

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 (NLrightarrow Prolog) and Logical English to Prolog (LErightarrow Prolog), and introduces a new reasoning-guided translation framework called Structured Four-Stage Legal Translation (S4Lrightarrow Prolog). 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. S4Lrightarrow Prolog achieves the highest accuracy, correctly formalizing 75 percent of the rules, while NLrightarrow Prolog reaches 60 percent and LErightarrow Prolog 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.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 5 of its 22 references that are in the map. First posted on arXiv 17 Sep 2026.

Builds on

5 of 22 references.

References · 5

  1. 2017On a Formal Model of Safe and Scalable Self-driving Carscited by 131
  2. 2019Liability, Ethics, and Culture-Aware Behavior Specification using Rulebookscited by 43
  3. 2020Formalizing Traffic Rules for Machine Interpretabilitycited by 13
  4. 2024TR2MTL: LLM based framework for Metric Temporal Logic Formalization of Traffic Rulescited by 9
  5. 2025Grammar-Forced Translation of Natural Language to Temporal Logic using LLMscited by 8

Built on by

Not cited yet.