Extract metadata from legal citations
Project description
legal_citation_parser
Extracts metadata from legal citations.
Although legal citations are typically short strings, they contain a great deal of information compressed into a relatively small package. This Python module is designed to extract and standardize that data from from legal citation strings. This module can currently handles the following citation types:
- Neutral citations (Canadian);
- Supreme Court Reader (SCR) citations;
- CanLII citations.
Metadata
The module currently extracts the following from (most) raw CanLII citation strings:
- UID. The decision's unique ID. Corresponds to the CanLII API's
caseId
variable. - Atomic citation. The citation's human readable unique ID.
- Style of cause. The human readable case name.
- Citation type. The type of citation parsed.
- Year. The decision's year.
- Decision number. The decision's number.
- Jurisdiction. The province, territory, or federal jurisdiction the case was heard in.
- Court name. The human readable court level.
- Court level. The relative level of the court.
- CanLII URL. The decision's URL on canlii.org
Installation
From the command line:
pip install legal_citation_parser
In Python 3.x:
>>> from legal_citation_parser import parse_citation
Contributing
Contributions to improve this module are welcome. You can contribute by:
- Reporting bugs
- Suggesting enhancements
- Sending pull requests with bug fixes or new features
License
This project is licensed under the GPL 3.0 License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for legal_citation_parser-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f17651f2d209cc968b75e7dd0ae7ffd64953e5319486e888df2bda88e055c3d |
|
MD5 | 5d3220ed1274be9e035297d446871a62 |
|
BLAKE2b-256 | 7976fd51ecc59400cee2331d795dfd7278b680d2e133c8dc41b3561aed10e7be |
Hashes for legal_citation_parser-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a23422265dd7c9b42f51396557273176193edbece32a5408941e198d7562e3a0 |
|
MD5 | 6022447e3e769ed92d5601572f5b9418 |
|
BLAKE2b-256 | afa365453546db75ee0f7d0755f1c6267b18779f1e99484047f7086a05c96db3 |