uk-legislation
reference corpus · status live · category STD (Standards, specs & regulations) · lane A · refresh pinned
What an agent uses it for
an agent answering UK-law questions queries this for what the current statute actually says — Consumer Rights Act remedies, GDPR-adjacent DPA 2018 duties, Building Safety Act duties (demand: legal-courts Ask-HN volume 46; source chosen for best-in-class versioned OGL XML)
Use it
xerj corpus add --from https://raw.githubusercontent.com/xerj-org/xerj/corpus-hub/tools/xerj-code/hub/uk-legislation.jsonxerj corpus index uk-legislation → xerj code uk-legislation "your question"Sources & pins
| source | pin | licence | size | review note |
|---|---|---|---|---|
| uk-legislation | 0575db1cbced… | OGL-3.0 | 62.8 MB / 21,292 files | G4 at source: legislation.gov.uk publishes under the Open Government Licence v3.0 (stated on the site's using-legislation page); OGL requires the acknowledgement sentence, which is reproduced in the mirror README and here: 'Contains public sector information licensed under the Open Government Licence v3.0.' Mirror = pinned snapshot via hub/nonit/build_uk.sh + split_uk.py: all 418 uk |
62.8 MB across 21,292 files · added 2026-10-02
Rights
OGL-3.0 — redistribution permitted with attribution per the licence review . The review block records a human opening each licence file at the pin; detector output is a hint, never the verdict.
Retrieval spot-check (G7)
median 5.0/5 relevant — 2026-10-02T23:05:00Z
Q: How long does a consumer have the short-term right to reject goods?
expect: Consumer Rights Act 2015 s.20/s.22: 30 days, unless goods perish sooner
top-5: 2015-15/s22 · 2015-15/s20 · 2015-15/s23 · 2015-15/s23 · 2015-15/sched-1
grade: relevant
expect: Consumer Rights Act 2015 s.20/s.22: 30 days, unless goods perish sooner
top-5: 2015-15/s22 · 2015-15/s20 · 2015-15/s23 · 2015-15/s23 · 2015-15/sched-1
grade: relevant
Q: What pre-contract information must a trader give for a distance contract?
expect: CRA 2015 Schedule 2: trader identity, address, main characteristics, total price incl. tax, delivery arrangements, right to cancel
top-5: 2024-13/s256 · 2024-13/s257 · 2024-13/sched-23 · 2024-13/s257 · 2024-13/s275
grade: relevant
expect: CRA 2015 Schedule 2: trader identity, address, main characteristics, total price incl. tax, delivery arrangements, right to cancel
top-5: 2024-13/s256 · 2024-13/s257 · 2024-13/sched-23 · 2024-13/s257 · 2024-13/s275
grade: relevant
Q: When may a data controller charge a fee for a subject access request?
expect: Data Protection Act 2018 s.45/s.46: generally free; reasonable fee for excessive or repeated requests
top-5: 2025-18/s75 · 2025-18/s76 · 2018-12/s53 · 2018-12/s12 · 2018-12/s54
grade: relevant
expect: Data Protection Act 2018 s.45/s.46: generally free; reasonable fee for excessive or repeated requests
top-5: 2025-18/s75 · 2025-18/s76 · 2018-12/s53 · 2018-12/s12 · 2018-12/s54
grade: relevant
Q: Which payments to landlords or letting agents are banned as prohibited tenant fees?
expect: Tenant Fees Act 2019 s.1 and Schedule 1: banning deposits over set caps, admin, referencing fees
top-5: 2019-4/s15 · 2019-4/s10 · 2019-4/sched-1 · 2019-4/s5A · 2016-22/s14
grade: relevant
expect: Tenant Fees Act 2019 s.1 and Schedule 1: banning deposits over set caps, admin, referencing fees
top-5: 2019-4/s15 · 2019-4/s10 · 2019-4/sched-1 · 2019-4/s5A · 2016-22/s14
grade: relevant
Q: What safety cases and reports must building owners prepare for higher-risk buildings?
expect: Building Safety Act 2022: safety case report, registration with the Building Safety Regulator (Part 4)
top-5: 2022-30/s20 · 2022-30/s85 · 2022-30/s86 · 2022-30/s61 · 2022-30/s95
grade: relevant
expect: Building Safety Act 2022: safety case report, registration with the Building Safety Regulator (Part 4)
top-5: 2022-30/s20 · 2022-30/s85 · 2022-30/s86 · 2022-30/s61 · 2022-30/s95
grade: relevant