Mining Legal Arguments to Study Judicial Formalism

Tomáš Koref, Lena Held, Mahammad Namazov, Harun Kumru, Yassine Thlija +2 more
12/12/2025
cs.CLcs.CY

Official code: trusthlt/madon (2 stars, Apache-2.0, last commit 2026-03-17).

Abstract

Courts must justify their decisions, but systematically analyzing judicial reasoning at scale remains difficult. This study refutes claims about formalistic judging in Central and Eastern Europe (CEE) by developing automated methods to detect and classify judicial reasoning in Czech Supreme Courts' decisions using state-of-the-art natural language processing methods. We create the MADON dataset of 272 decisions from two Czech Supreme Courts with expert annotations of 9,183 paragraphs with eight argument types and holistic formalism labels for supervised training and evaluation. Using a corpus of 300k Czech court decisions, we adapt transformer LLMs for Czech legal domain by continued pretraining and experiment with methods to address dataset imbalance including asymmetric loss and class weighting. The best models successfully detect argumentative paragraphs (82.6\% macro-F1), classify traditional types of legal argument (77.5\% macro-F1), and classify decisions as formalistic/non-formalistic (83.2\% macro-F1). Our three-stage pipeline combining ModernBERT, Llama 3.1, and traditional feature-based machine learning achieves promising results for decision classification while reducing computational costs and increasing explainability. Empirically, we challenge prevailing narratives about CEE formalism. This work shows that legal argument mining enables reliable judicial philosophy classification and shows the potential of legal argument mining for other important tasks in computational legal studies. Our methodology is easily replicable across jurisdictions, and our entire pipeline, datasets, guidelines, models, and source codes are available at https://github.com/trusthlt/madon.

View on arXivView PDF

Code Implementations(1)

trusthlt/madonOfficial100%
Apache-2.0

MADON repository TODO change

21PythonOct 21, 20257 months agoApache-2.0

Similar Papers

Cite this paper

@article{koref2025mining,
  title  = {Mining Legal Arguments to Study Judicial Formalism},
  author = {Tomáš Koref and Lena Held and Mahammad Namazov and Harun Kumru and Yassine Thlija and Christoph Burchard and Ivan Habernal},
  year   = {2025},
  eprint = {2512.11374},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.11374v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.11374.svg)](https://codeofpaper.com/paper/2512.11374)

Discussion