Citation Title
citation-title reduces an already segmented Philippine Supreme Court decision
title to a concise, readable citation title. It recognizes adversarial cases
and In re-style matters, removes non-title material, and applies the
repository's established party-name and institutional shorthands.
It is deliberately conservative. Long captions and multi-party captions are
accepted when their structure identifies the parties; a short caption with an
ambiguous bare V. is not guessed. In that situation, the package returns
None so the calling workflow can retain the source title or route it for
review.
It works alongside citation-report
in the LawSQL citation-processing ecosystem: report
extraction identifies the reporter citation, while this package shortens the
decision-title evidence supplied by the calling workflow.
Quick Example
from citation_title import cite_title
short_title = cite_title("People of the Philippines Vs. Juan Dela Cruz")
assert short_title == "People v. Dela Cruz"
Using the Result
- The source title remains the legal evidence and should be retained.
- The returned value is a compact display title, not a replacement for the source record.
Nonemeans that the package could not identify a title safely. It does not mean that the decision has no title.
Documentation
See the documentation for the title-shortening flow, supported case forms, local development checks, and release notes.
Boundaries
- Callers own title segmentation and preserve the original source title.
citation-titleowns short-title normalization for adversarial andIn reforms.citation-reportowns report-citation grammar and report normalization.
Release files for citation-title 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| citation_title-1.0.1.tar.gz | 11.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| citation_title-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.6 kB
Release files / citation_title-1.0.1.tar.gz
| Download URL | citation_title-1.0.1.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5dcb780b7cf9117f2d4ab2cb98dc2d5d25c41ede330edd7b387d081e5668d1ff
|
|
BLAKE2b-256 checksum How to use checksums |
4d699d5ef831342eb8a7355c27de6d52c37ca1728513be72bab5552e4df14ac1
|
| 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 / citation_title-1.0.1-py3-none-any.whl
| Download URL | citation_title-1.0.1-py3-none-any.whl |
|---|---|
| Size | 13.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28f0485be53bbd94e2f641b1bb91933c8958e50bd60c33aaf312834c4c05f191
|
|
BLAKE2b-256 checksum How to use checksums |
cf1dd84dd44a682ff05262b0cb447371999eb726e1540e49c9565934dcc613d0
|
| 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}
|