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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

citation_title-1.0.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

citation_title-1.0.0-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file citation_title-1.0.0.tar.gz.

File metadata

  • Download URL: citation_title-1.0.0.tar.gz
  • Upload date:
  • Size: 10.5 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 citation_title-1.0.0.tar.gz
Algorithm Hash digest
SHA256 888b834ae74c0d232072f10e3ca7f288c9fc082ff848d52af462d3a35a3afb47
MD5 a232d3cab7739a82059e99ebb36ff296
BLAKE2b-256 29fd590ba8b45e505345d4496ba7593f04173d4f0575f1b19c8908a75651a837

See more details on using hashes here.

File details

Details for the file citation_title-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: citation_title-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 13.5 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 citation_title-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8991f2d04060213e4a0d54acc24704bf136a36a1b81437306a68623f3799b4bd
MD5 f50a7b0a19291f6e51bee41f9b8d75d8
BLAKE2b-256 1c7e41c0201fe308ee77f7f1c5a8c235067c35414674e343d5623852b61860f4

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