DEV Community

SybilGambleyyu
SybilGambleyyu

Posted on • Originally published at sybilgambleyyu.github.io

citesure 0.2: CourtListener case law and CJK title matching

LLM-written bibliographies do not stop at arXiv preprints. Law review drafts invent reporter cites; multilingual papers mangle Chinese titles. citesure 0.2 extends the integrity gate into those failure modes.

US case law via CourtListener

References that look like court cases โ€” @jurisdiction entries, Plaintiff v. Defendant titles, or reporter strings such as 347 U.S. 483 โ€” are resolved against Free Law Project CourtListener. Ranking prefers an exact reporter cite over companion orders, so Brown lands on 347 U.S. 483 rather than a later procedural listing.

@jurisdiction{brown1954,
  title        = {Brown v. Board of Education},
  year         = {1954},
  howpublished = {347 U.S. 483},
}
Enter fullscreen mode Exit fullscreen mode
citesure check examples/packs/us-case-law.bib
citesure warm-cache cases.bib
Enter fullscreen mode Exit fullscreen mode

Optional COURTLISTENER_TOKEN for higher rate limits. Law-review CI: templates/journal/law-review.yml.

CJK-aware matching

NFKC + fullwidth folding; character-level similarity for CJK-heavy titles; CJK bigrams in claim scoring so Chinese claims are not silently empty.

Evidence

  • Integrity bench 242/242 (US cases + Chinese titles + multi-domain set)
  • Claims mini-bench 29/29
  • Eight domain packs including us-case-law

Install

pip install "git+https://github.com/SybilGambleyyu/citesure.git[pdf]"
Enter fullscreen mode Exit fullscreen mode

Source: github.com/SybilGambleyyu/citesure ยท Demo: workers.dev

Top comments (0)