Specific Types
Docket Report Citation
Bases: Docket
, Report
, ABC
Note Report
is defined in a separate library citation-report
.
The DocketReportCitation
abstract class makes sure that all of the
fields of a Docket object alongside all of the fields of a Report
object will be utilized. It also mandates the implementation of acls.search()
method.
Source code in src/citation_utils/dockets/models/docket_citation.py
General Register
Bases: DocketReportCitation
Source code in src/citation_utils/dockets/constructed_gr.py
Functions
search(text)
classmethod
Get all dockets matching the GR
docket pattern, inclusive of their optional Report object.
Examples:
>>> text = "Bagong Alyansang Makabayan v. Zamora, G.R. Nos. 138570, 138572, 138587, 138680, 138698, October 10, 2000, 342 SCRA 449"
>>> cite = next(CitationGR.search(text))
>>> cite.model_dump(exclude_none=True)
{'publisher': 'SCRA', 'volume': '342', 'page': '449', 'context': 'G.R. Nos. 138570, 138572, 138587, 138680, 138698', 'category': 'GR', 'ids': '138570, 138572, 138587, 138680, 138698', 'docket_date': datetime.date(2000, 10, 10)}
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text |
str
|
Text to look for citation objects |
required |
Yields:
Type | Description |
---|---|
Self
|
Iterator[Self]: Combination of Docket and Report pydantic model. |
Source code in src/citation_utils/dockets/constructed_gr.py
Administrative Matter
Bases: DocketReportCitation
Source code in src/citation_utils/dockets/constructed_am.py
Functions
search(text)
classmethod
Get all dockets matching the AM
docket pattern, inclusive of their optional Report object.
Examples:
>>> text = "A.M. No. P-88-198, February 25, 1992, 206 SCRA 491."
>>> cite = next(CitationAM.search(text))
>>> cite.model_dump(exclude_none=True)
{'publisher': 'SCRA', 'volume': '206', 'page': '491', 'context': 'A.M. No. P-88-198', 'category': 'AM', 'ids': 'P-88-198', 'docket_date': datetime.date(1992, 2, 25)}
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text |
str
|
Text to look for citation objects |
required |
Yields:
Type | Description |
---|---|
Self
|
Iterator[Self]: Combination of Docket and Report pydantic model. |
Source code in src/citation_utils/dockets/constructed_am.py
Administrative Case
Bases: DocketReportCitation
Source code in src/citation_utils/dockets/constructed_ac.py
Functions
search(text)
classmethod
Get all dockets matching the AC
docket pattern, inclusive of their optional Report object.
Examples:
>>> text = "A.C. No. P-88-198, February 25, 1992, 206 SCRA 491."
>>> cite = next(CitationAC.search(text))
>>> cite.model_dump(exclude_none=True)
{'publisher': 'SCRA', 'volume': '206', 'page': '491', 'context': 'A.C. No. P-88-198', 'category': 'AC', 'ids': 'P-88-198', 'docket_date': datetime.date(1992, 2, 25)}
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text |
str
|
Text to look for citation objects |
required |
Yields:
Type | Description |
---|---|
Self
|
Iterator[Self]: Combination of Docket and Report pydantic model. |
Source code in src/citation_utils/dockets/constructed_ac.py
Bar Matter
Bases: DocketReportCitation
Source code in src/citation_utils/dockets/constructed_bm.py
Functions
search(text)
classmethod
Get all dockets matching the BM
docket pattern, inclusive of their optional Report object.
Examples:
>>> text = "B.M. No. 1678, December 17, 2007"
>>> cite = next(CitationBM.search(text))
>>> cite.model_dump(exclude_none=True)
{'context': 'B.M. No. 1678', 'category': 'BM', 'ids': '1678', 'docket_date': datetime.date(2007, 12, 17)}
Parameters:
Name | Type | Description | Default |
---|---|---|---|
text |
str
|
Text to look for citation objects |
required |
Yields:
Type | Description |
---|---|
Self
|
Iterator[Self]: Combination of Docket and Report pydantic model. |