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

Release files for corpus-judge 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for corpus-judge 1.0.1
File Size Uploaded
corpus_judge-1.0.1.tar.gz 19.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for corpus-judge 1.0.1
File Interpreter ABI Platform
corpus_judge-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 40.8 kB

Release files / corpus_judge-1.0.1.tar.gz

Download URL corpus_judge-1.0.1.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
96d94ebad428d2a2fca34f0e0415c0a74bf51bcb7358ec1c64eed4bf758ecc2b
BLAKE2b-256 checksum
How to use checksums
c8cd350c30c22d6ad2b254e41ba9f2c9488f80accfd6e8e30615bfb68480e65e
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / corpus_judge-1.0.1-py3-none-any.whl

Download URL corpus_judge-1.0.1-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c614cd7b3e56845e50593023399ed11310472b697770326767474a659564262c
BLAKE2b-256 checksum
How to use checksums
78e356e26b7795a7f8c76e1d8a3141b8eae4e45a081b80b073e3ef370d0d2388
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page