Skip to main content

Github CI

Corpus Judge

corpus-judge provides a curated Supreme Court justice roster plus utilities for normalizing opinion-writer names and selecting a likely justice for a case date. It is intended for Philippine legal-corpus ingestion, where the original writer text should remain available as source evidence. Selection is conservative: when the source text and active roster do not support one justice, the result is unresolved rather than a guessed attribution.

Quick Example

from corpus_judge import CandidateJustice, load_justice_records
from sqlite_utils import Database

db = Database(":memory:")
db["justices"].insert_all(load_justice_records())

candidate = CandidateJustice(
    db=db,
    text="Justice Antonio T. Kho, Jr.",
    date_str="2023-04-03",
)
assert candidate.detail is not None
assert candidate.detail.raw_ponente == "Kho"

Documentation

See the documentation for the roster schema, name-normalization rules, selection behavior, and development commands. The release notes compare the current major release with the previously published package.

Testing

uv sync --all-extras --dev
just check

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

corpus_judge-1.0.0.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

corpus_judge-1.0.0-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file corpus_judge-1.0.0.tar.gz.

File metadata

  • Download URL: corpus_judge-1.0.0.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for corpus_judge-1.0.0.tar.gz
Algorithm Hash digest
SHA256 28cbab4a0a8220ff102be0526f55cd18611fbc1fa7ec9842c76573d33c264862
MD5 651e8b3b519f4b3e205d736e7a41230c
BLAKE2b-256 486472b65478e38e3cbc15b2be3edfe4faa2349af32e3a4305606baa7df1c974

See more details on using hashes here.

File details

Details for the file corpus_judge-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: corpus_judge-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for corpus_judge-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9189d828b83bb62b2548a825b49a671fbc598044843e3f7c9b15b5c0482b7ac0
MD5 6c320c147804c9c10e2f9284f49a1caa
BLAKE2b-256 2c59a29a6b2dc5df37dda2337e36f235e68109f39fbde08983a3cbfbdd119902

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page