Cross-Jurisdictional Legal Citation Coupling — Ukrainian data & tools
Reproducibility artifacts for the paper "Bibliographic Coupling as a Cross-Jurisdictional Evaluation Framework for Legal Case Retrieval: Civil-Law and Common-Law Citation Graphs Compared."
The paper compares a civil-law citation graph (Ukrainian, from the EDRSR state court-decision registry) with a common-law one (Canadian, from the COLIEE 2026 Task 1 corpus) under a single coupling / co-citation / temporal methodology. This repository holds the tools and the Ukrainian-side derived data so the Ukrainian results can be reproduced and the numbers cited in the paper can be traced to their source.
The Canadian (COLIEE Task 1) texts are not redistributed here — they are governed by the COLIEE data memorandum. The same tools reproduce the Canadian figures from the COLIEE corpus once its licence terms are met.
Contents
tools/
Standard-library / sentence-transformers Python (and R for figures); no
third-party services beyond a PostgreSQL source and, for retrieval, a GPU.
| Tool | Purpose |
|---|---|
build_canada_citation_graph.py |
Build the case→case graph from a COLIEE-format zip; coupling, co-citation, citation-age + Mann-Kendall |
build_ua_coupling_sample.py |
UA article-level coupling / co-citation on a fixed-seed decision sample (runs on the EDRSR Postgres) |
build_ua_temporal.py |
Full UA case→case citation-age trend + Mann-Kendall over all resolved precedent edges |
build_ua_case_retrieval_package.py |
Assemble a COLIEE-format UA case-retrieval task (gold = resolved precedent edges) |
probe_ua_case_retrieval.py |
Read-only scoping probe used to size the UA task |
retrieval_experiment.py |
Dense first-stage retrieval (E5, BGE-M3) + exponential recency-weighting sweep; --years-json for non-English dates |
figures/ |
prepare_fig_data.py (JSON→CSV), R + tikzDevice figure scripts, build_claims_source.py (flatten stats for fact-checking) |
data/ (Ukrainian, derived from EDRSR)
| File | What |
|---|---|
ua_graph_stats.json |
UA article-level coupling / co-citation sample statistics |
ua_temporal_stats.json |
UA full case→case citation-age-by-year series + Mann-Kendall (6.59M precedent edges) |
ua_retrieval_results.json |
UA case-retrieval macro P/R/F1 @k, baseline vs recency-weighting sweep (E5, BGE-M3) |
ua_case_retrieval.zip |
The UA case-retrieval benchmark in COLIEE Task 1 format: ua_cases/cases/<doc_id>.txt (2,000 queries + ~7,700-decision pool, texts truncated) + clean_ua_case_labels.json (query → gold precedent) |
ua_years.json |
{<doc_id>.txt: decision_year} for recency weighting |
Reproduce the Ukrainian retrieval result
python tools/retrieval_experiment.py \
--zip data/ua_case_retrieval.zip \
--years-json data/ua_years.json \
--models e5 bge-m3 --max-chars 4000 --num-gpus 1 \
--out ua_retrieval_results.json
Headline: exponential recency weighting degrades case retrieval in both Ukraine (−37% to −41% at λ=0.2) and Canada (−64% to −67%), while it improves Ukrainian statute retrieval — so the effect tracks the target type (superseded statute vs. cumulative precedent), not the legal tradition. Coupling density, by contrast, is tradition-dependent (Ukrainian decisions couple ~18× more densely than Canadian cases).
Source & ethics
Ukrainian data derives from the public EDRSR (Єдиний державний реєстр
судових рішень). Decision texts are truncated and included only as a research
benchmark. See also overthelex/ukrainian-court-decisions and
overthelex/ua-court-citation-graph.
Citation
Bibliographic Coupling as a Cross-Jurisdictional Evaluation Framework for Legal Case Retrieval. Working draft, 2026 -- UAlberta / COLIEE collaboration; authorship to be finalized.
- Downloads last month
- 60