Automatic Construction of a Legal Citation Graph from 100 Million Ukrainian Court Decisions: Large-Scale Extraction, Topological Analysis, and Ontology-Driven Clustering
Volodymyr Ovcharov · 2026
Read Automatic Construction of a Legal Citation Graph from 100 Million Ukrainian Court Decisions: Large-Scale Extraction, Topological Analysis, and Ontology-Driven Clustering by Volodymyr Ovcharov (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-15362.txt.
Introduction
Volodymyr Ovcharov builds the first large-scale citation graph from 100.7 million Ukrainian court decisions, pulling 502 million cite links in about five hours on off-the-shelf hardware. The degree distribution follows a power law with power 1.57, near the EU Court of Justice. Louvain communities on the co-citation projection recover legal domains, civil, crime, admin, and business, with modularity up to 0.55 and strong temporal steadiness. Cite signals predict top-1000 papers with AUC 0.9984, far above count rivals.
Catalog record
| CREATOR | Volodymyr Ovcharov |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 37048 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2605.15362
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Automatic Construction of a Legal Citation Graph from 100 Million Ukrainian Court Decisions: Large-Scale Extraction, Topological Analysis, and Ontology-Driven Clustering Volodymyr Ovcharov Abstract Half a billion citation edges extracted from 100.7 million Ukrainian court decisions reveal that judicial citation structure encodes legal domain boundaries without supervision and predicts future legislative importance with near-perfect accuracy. We construct the first large-scale citation graph from the complete EDRSR registry (99.5 million full texts, 1.1 TB), extracting 502 million citation links across six types via regex on commodity hardware in approximately 5 hours, with precision of 1.00 on a 200-decision validation sample. Three principal findings emerge. (1) The degree distribution follows a power law ( α = 1.57 \alpha=1.57 ), placing the Ukrainian court network between the Indian Supreme Court and the EU Court of Justice, with hub articles cited by millions of decisions. (2) Louvain community detection on the co-citation projection recovers legal domain boundaries (civil, criminal, administrative, commercial) with modularity Q = 0.44 Q=0.44 – 0.55 0.55 and temporal stability (NMI = 0.83 =0.83 – 0.86 0.86 across periods), constituting an automatically constructed legal ontology grounded in judicial practice. (3) Citation features predict top-1000 articles with AUC = 0.9984 =0.9984 ; temporal dynamics detect legislative regime changes as phase transitions and the 2022 invasion as a citation entropy spike ( H : 11.02 → 13.49 H:11.02\to 13.49 ) with emergent wartime legislation nodes. The citation-derived ontology is operationalized as the domain layer of a workflow memory system for LLM-assisted legal analysis [ 14 ] , connecting to the ontology-controlled paradigm [ 16 , 17 ] . The extraction pipeline, analysis code, and aggregated statistics are released as open data. Keywords: legal citation graph, court decisions, Ukrainian law, ontology construction, knowledge extraction, EDRSR, network analysis, legal NLP 1 Introduction The Unified State Register of Court Decisions (EDRSR, диний державний рестр судових ршень ) is the largest open judicial corpus in continental Europe. Established in 2006 by Ukrainian law, it mandates publication of all court decisions within five days of rendering. As of May 2026, the registry contains 101.4 million decision records, of which 100.7 million include full text, spanning all judicial instances and all branches of justice – civil, criminal, commercial, administrative, and constitutional. This corpus has been largely unexploited for computational legal analysis. Prior work on legal citation networks has focused on common-law and Nordic jurisdictions – the U.S. Supreme Court [ 6 ] , Dutch case law [ 21 ] , Danish courts [ 11 ] – where explicit citation conventions (case names, reporter volumes) make extraction straightforward. Continental legal systems, including Ukraine’s, present different challenges: citations are to legislation articles rather than prior cases, citation formats are inconsistent (abbreviations, Ukrainian morphology, varying codex names), and the sheer volume of decisions (8+ million per year since 2017) requires industrial-scale processing. No prior work has attempted citation extraction at the 100-million-decision scale for any jurisdiction. This paper makes three contributions: 1. Large-scale citation extraction. A regex-based pipeline that identifies six citation types in Ukrainian legal text, processing 100.7 million decisions (1.1 TB of full text) in approximately 5 hours on a single 16-core production server. The pipeline yields 502 million citation edges with a precision of 100% on a 200-decision manually annotated sample. 2. Topological analysis of the citation graph. We analyze the resulting bipartite graph (decisions \leftrightarrow legislation) and its projections. The legislation-side projection reveals community structure that corresponds to established legal domains without supervision. Temporal analysis shows citation density shifts that align with major legislative reforms (2004 Civil Code adoption, 2012 Criminal Procedure Code, 2017 judicial reform). 3. Citation-derived legal ontology. Co-citation clustering produces an automatically constructed legal ontology: groups of legislation articles that are semantically related because courts cite them together. This ontology is deployed as the domain layer of the workflow memory system described in the companion paper [ 14 ] , operationalizing the ontology-controlled paradigm of 16 with data-derived rather than manually curated structure. The work continues two lines of research. First, the knowledge extraction program of 15 , which proposed methods for extracting structured knowledge from natural-language texts – here applied to 100 million legal texts at a scale not previously attempted in the Ukrainian NLP community. Second, the distributional semantic modeling approach of 18 , which used co-occurrence patterns to train term vector spaces – here instantiated as co-citation patterns that define legislation similarity without requiring embedding models or labeled data. The connection to the ontology-controlled systems paradigm [ 16 , 17 ] is structural: the citation graph provides the data layer that an ontology-controlled LLM system needs to ground its legal reasoning in statute structure. The companion paper on oversight-controlled systems [ 13 ] formalizes the conditions under which human corrections on LLM output constitute valid training signal; the citation graph provides the domain knowledge that makes those corrections informed rather than arbitrary. 2 Related Work 2.1 Legal Citation Network Analysis 6 pioneered legal citation network analysis by constructing a citation graph of U.S. Supreme Court decisions (1791–2005, {\sim}30{,}000 decisions) and demonstrating that network centrality measures (PageRank, hub/authority scores) predict legal importance better than simple citation counts. Subsequent work extended this approach to the Dutch legal system [ 21 , 7 ] and Danish courts [ 11 ] . Temporal legal network analysis has been explored by 5 , who measured regulatory evolution in US and German statute networks. 9 constructed the network of French legal codes, providing a continental-law precedent for our work. All prior work operates at scales of 10^{3} – 10^{5} decisions. The EDRSR corpus is three orders of magnitude larger ( 10^{8} ), requiring different engineering approaches: partition-parallel processing, server-side cursors, and streaming aggregation. More fundamentally, the Ukrainian legal system is a continental (civil law) system where the primary citation relationship is decision \to legislation, not decision \to decision as in common-law systems. This produces a bipartite graph rather than a unipartite one, with different topological properties. 2.2 Knowledge Extraction from Legal Texts 15 proposed a framework for extracting structured knowledge from Ukrainian-language texts, combining morphological analysis with domain-specific ontologies. The framework was demonstrated on scientific and technical corpora but not applied to legal texts at scale. 18 extended this line with distributional semantic modeling, training term vector spaces from co-occurrence patterns in domain-specific corpora. Our approach is a direct application of this program to the legal domain: co-citation patterns in 100 million court decisions define a distributional semantics over legislation articles, where two articles are “similar” if courts cite them in the same decisions. This requires no labeled data, no embedding models, and no morphological analysis – the citation structure itself encodes the semantic relationships. 2.3 Legal NLP and Information Extraction Modern legal NLP has focused on transformer-based models: LEGAL-BERT [ 3 ] and LexNLP [ 2 ] . These approaches require labeled training data, are language-specific, and operate on individual documents rather than corpus-wide structure. Our regex-based approach is deliberately simple: it trades recall for precision and interpretability, and scales linearly with corpus size. For the specific task of legislation citation extraction in Ukrainian legal text, the structured format of citations (“ ст. 625 ЦК Украни ”, “ стаття 3 Закону Украни «Про …» ”) makes regex extraction