Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justmars/citation-utils
Docket citation regexes from Philippine Supreme Court decisions
https://github.com/justmars/citation-utils
legal legal-analytics legal-entity-identifier natural-language-processing regex
Last synced: 3 days ago
JSON representation
Docket citation regexes from Philippine Supreme Court decisions
- Host: GitHub
- URL: https://github.com/justmars/citation-utils
- Owner: justmars
- License: bsd-3-clause
- Created: 2021-09-07T10:28:49.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-18T08:29:56.000Z (3 months ago)
- Last Synced: 2024-11-09T19:19:51.551Z (8 days ago)
- Topics: legal, legal-analytics, legal-entity-identifier, natural-language-processing, regex
- Language: Python
- Homepage: https://lawsql.com
- Size: 2.32 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Citation: citation_utils/__init__.py
Awesome Lists containing this project
README
# citation-utils
![Github CI](https://github.com/justmars/citation-utils/actions/workflows/ci.yml/badge.svg)
Regex formula of Philippine Supreme Court citations in docket format (with reports); utilized in the [LawSQL dataset](https://lawsql.com).
## Documentation
See [documentation](https://justmars.github.io/citation-utils), building on top of [citation-report](https://justmars.github.io/citation-report).
## Caveats
### DocketCategory
Each `DocketCategory` has its own nuanced regex patterns identifying its _category_, _serial_text_, and _date_
#### Adding new Citation types
Recently, the `JIB` was added as a new category. This means creating a new `CitationConstructor` object with distinct objectts.
#### Adding new DocketRules
There are are `AM` and `BM` docket numbers that represent rules rather than decisions.
### DocketReports
Based on a `CiteableDocument`, construct a temp object prior to formation of `Citation`. This temp object is either:
1. A combination of a `Docket` object with its `Report` object; or
2. A solo, undocketed `Report`.