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.1.tar.gz (11.2 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.1-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: citation_title-1.0.1.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for citation_title-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5dcb780b7cf9117f2d4ab2cb98dc2d5d25c41ede330edd7b387d081e5668d1ff
MD5 1011fefbb1c96a11826094a4308502ab
BLAKE2b-256 4d699d5ef831342eb8a7355c27de6d52c37ca1728513be72bab5552e4df14ac1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: citation_title-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for citation_title-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 28f0485be53bbd94e2f641b1bb91933c8958e50bd60c33aaf312834c4c05f191
MD5 b34b80ddcffad78d98416c557cc7ac10
BLAKE2b-256 cf1dd84dd44a682ff05262b0cb447371999eb726e1540e49c9565934dcc613d0

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