Answers are grounded in this paper and cite their sources.
This research presents a novel approach for translating legal texts into machine-executable computational logic to support the automation of public sector processes. Recognizing the high-stakes implications of artificial intelligence (AI) in legal domains, the proposed method emphasizes explainability by integrating explainable AI (XAI) techniques with natural language processing (NLP), employing scope-restricted pattern matching and grammatical parsing. The methodology involves several key steps: document structure inference from raw legal text, semantically neutral pre-processing, identification and resolution of internal and external references, contextualization of legal paragraphs, and rule extraction. The extracted rules are formalized as Prolog predicates and visualized as structured textual lists and graphical decision trees to enhance interpretability. To demonstrate the automatic extraction of explainable rules from legal text, we develop a Law-as-Code prototype and validate it through a real-world case study at the Austrian Ministry of Finance. The system successfully extracts executable rules from the Austrian Study Funding Act , confirming the feasibility and effectiveness of the proposed approach. This validation not only underscores the practical applicability of our method, but also highlights promising avenues for future research, particularly the integration of Generative AI and Large Language Models (LLMs) into the rule extraction pipeline, while preserving traceability and explainability. • We show how to extract first order predicate logic from legal text. • Extracted rule candidates are then approved by legal experts. • The human-in-the-loop step ensures regulatory compliance. • A rule-based engine can use the rules to hyperautomate public sector processes. • The developed prototype was validated with experts from the legal and e-Government domain.
No takes yet. Share an insight, caveat, or question.
Bertl et al. (2025) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: