Parse OSCOLA Citations
citations_parseParses free text to extract and classify OSCOLA citations: neutral citations, law reports, legislation, SIs, and retained EU law. Optionally disambiguates ambiguous references.
Instructions
Extract and classify all OSCOLA legal citations from free text.
Identifies: neutral citations ([2024] UKSC 12), law reports ([2024] 1 WLR 100), legislation sections (s.47 Companies Act 2006), SIs (SI 2018/1234), and retained EU law (Regulation (EU) 2016/679).
Ambiguous citations (e.g. bare [2024] EWHC without division) are optionally disambiguated via LLM sampling. Resolves citations to TNA / legislation.gov.uk URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | CitationsParseInput with text (max 50,000 chars) and disambiguate flag. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| citations | Yes | All successfully parsed citations (confidence >= 0.7) | |
| ambiguous | Yes | Citations with confidence < 0.7; may have been partially disambiguated via sampling | |
| text_length | Yes | Character length of the input text | |
| parse_duration_ms | Yes | Time taken to parse, in milliseconds |