Skip to main content

Citation Title

Github CI

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.
  • None means 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-title owns short-title normalization for adversarial and In re forms.
  • citation-report owns 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)

Source distribution for citation-title 1.0.1
File Size Uploaded
citation_title-1.0.1.tar.gz 11.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for citation-title 1.0.1
File Interpreter ABI Platform
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}

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

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