Parse OSCOLA Citations
citations_parseExtract and classify OSCOLA legal citations from text, identifying cases, legislation, and regulations, then resolve them to official URLs.
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 |