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.1.tar.gz (19.7 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.1-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: corpus_judge-1.0.1.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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.1.tar.gz
Algorithm Hash digest
SHA256 96d94ebad428d2a2fca34f0e0415c0a74bf51bcb7358ec1c64eed4bf758ecc2b
MD5 3cecf63d87a3f1f3ae866930c43286b0
BLAKE2b-256 c8cd350c30c22d6ad2b254e41ba9f2c9488f80accfd6e8e30615bfb68480e65e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: corpus_judge-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c614cd7b3e56845e50593023399ed11310472b697770326767474a659564262c
MD5 575786c88966d96c6702d9f9bc1ba393
BLAKE2b-256 78e356e26b7795a7f8c76e1d8a3141b8eae4e45a081b80b073e3ef370d0d2388

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