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.

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-0.2.1.tar.gz (19.0 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-0.2.1-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: corpus_judge-0.2.1.tar.gz
  • Upload date:
  • Size: 19.0 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-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9b381e29c1259195669b57b8482ef1748ac4fcb84e06d526da413eabfea538c8
MD5 16d7e833e6a2d1edbdcd25ef5eb93807
BLAKE2b-256 181fc69f74a3f7fce85d8622579707e61f0f8a4b77ebd953711881215e737ae1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: corpus_judge-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 21.0 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-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d1ee6918d7b52eda0529e96caa00f8eb31b0d0b3729c65cee78753a624cfa8d
MD5 4825a9cfe9f3bd45e92f95b27fd65cf8
BLAKE2b-256 ab906bc7958b1b45810dece85fe9d6b503a5c58ba90a3882f641b181810b7402

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