Datasets:
citation_en stringlengths 7 35 ⌀ | citation2_en null | dataset stringclasses 6
values | name_en stringlengths 4 485 | document_date_en timestamp[ns, tz=UTC]date 1870-05-12 00:00:00 2026-04-09 00:00:00 ⌀ | source_url_en stringlengths 65 96 | scraped_timestamp_en timestamp[ns, tz=UTC]date 2026-04-12 00:00:00 2026-04-12 14:24:00 | unofficial_text_en stringlengths 79 8.71M | unofficial_sections_en large_stringlengths 2 7.24M ⌀ | num_sections_en int64 0 9.7k | citation_fr null | citation2_fr null | name_fr null | document_date_fr timestamp[ns, tz=UTC]date 1870-05-12 00:00:00 2026-04-09 00:00:00 ⌀ | source_url_fr null | scraped_timestamp_fr timestamp[ns, tz=UTC]date 2026-04-12 00:00:00 2026-04-12 12:56:26 ⌀ | unofficial_text_fr null | unofficial_sections_fr large_stringlengths 2 7.71M ⌀ | num_sections_fr int64 0 9.7k | upstream_license stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RSBC 1996, c 1 | null | LEGISLATION-BC | Access to Abortion Services Act | 1996-01-01T00:00:00 | https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/96001_01/xml | 2026-04-12T12:56:32.683000 | # Access to Abortion Services Act
RSBC 1996, c 1
# Access to Abortion Services Act
Preamble WHEREAS all people in British Columbia are entitled to access to health care, including abortion services; AND WHEREAS all people who use the British Columbia health care system, and who provide services for it, should be tre... | {"1": "Definitions\nIn this Act:\n*abortion services* means lawful medical services provided for the termination of pregnancy;\n*access zone* means an access zone established under section 5, 6 or 7;\n*beset* means to continuously or repeatedly observe a service provider, doctor who provides abortion services or patien... | 16 | null | null | null | null | null | null | null | null | 0 | See Upstream license available at: https://perma.cc/8F7Y-P8QD. NOTE: These materials contain information that has been derived from information originally made available by the Province of British Columbia at: http://www.bclaws.gov.bc.ca and this information is being used in accordance with the King's Printer Licence -... |
SBC 2021, c 19 | null | LEGISLATION-BC | Accessible British Columbia Act | 2021-06-17T00:00:00 | https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/21019/xml | 2026-04-12T12:56:43.457000 | # Accessible British Columbia Act
SBC 2021, c 19
# Accessible British Columbia Act
## 1 — Interpretation
### Definitions
1 In this Act:
*accessibility committee* means a committee under section 9 ;
*accessibility plan* means a plan under section 11 ;
*barrier* has the meaning given to it in section 2 ;
*direct... | {"1": "Definitions\nIn this Act:\n*accessibility committee* means a committee under section 9 ;\n*accessibility plan* means a plan under section 11 ;\n*barrier* has the meaning given to it in section 2 ;\n*director* means the director designated under section 21 ;\n*disability* means an inability to participate fully a... | 33 | null | null | null | null | null | null | null | null | 0 | See Upstream license available at: https://perma.cc/8F7Y-P8QD. NOTE: These materials contain information that has been derived from information originally made available by the Province of British Columbia at: http://www.bclaws.gov.bc.ca and this information is being used in accordance with the King's Printer Licence -... |
SBC 2004, c 45 | null | LEGISLATION-BC | Administrative Tribunals Act | 2004-05-20T00:00:00 | https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/04045_01/xml | 2026-04-12T12:56:54.377000 | # Administrative Tribunals Act
SBC 2004, c 45
# Administrative Tribunals Act
## 1 — Interpretation and Application
### Definitions
1 In this Act:
*applicant* includes an appellant, a claimant or a complainant;
*application* includes an appeal, a review or a complaint but excludes any interim or preliminary matte... | {"1": "Definitions\nIn this Act:\n*applicant* includes an appellant, a claimant or a complainant;\n*application* includes an appeal, a review or a complaint but excludes any interim or preliminary matter or an application to the court;\n*appointing authority* means the person or the Lieutenant Governor in Council who, ... | 206 | null | null | null | null | null | null | null | null | 0 | See Upstream license available at: https://perma.cc/8F7Y-P8QD. NOTE: These materials contain information that has been derived from information originally made available by the Province of British Columbia at: http://www.bclaws.gov.bc.ca and this information is being used in accordance with the King's Printer Licence -... |
RSBC 1996, c 5 | null | LEGISLATION-BC | Adoption Act | 1996-01-01T00:00:00 | https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/96005_01/xml | 2026-04-12T12:57:03.115000 | "# Adoption Act\n\nRSBC 1996, c 5\n\n# Adoption Act\n\n## 1 — Introductory Provisions\n\n### Defin(...TRUNCATED) | "{\"1\": \"Definitions and interpretation\\n1 In this Act:\\n*administrator* means the chief executi(...TRUNCATED) | 115 | null | null | null | null | null | null | null | null | 0 | "See Upstream license available at: https://perma.cc/8F7Y-P8QD. NOTE: These materials contain inform(...TRUNCATED) |
RSBC 1996, c 6 | null | LEGISLATION-BC | Adult Guardianship Act | 1996-01-01T00:00:00 | https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/96006_01/xml | 2026-04-12T12:57:10.058000 | "# Adult Guardianship Act\n\nRSBC 1996, c 6\n\n# Adult Guardianship Act\n\n## 1 — Introductory Pro(...TRUNCATED) | "{\"1\": \"Definitions\\nIn this Act:\\n*abuse* means the deliberate mistreatment of an adult that c(...TRUNCATED) | 72 | null | null | null | null | null | null | null | null | 0 | "See Upstream license available at: https://perma.cc/8F7Y-P8QD. NOTE: These materials contain inform(...TRUNCATED) |
SBC 2018, c 43 | null | LEGISLATION-BC | Advanced Education Statute Repeal Act | 2018-11-08T00:00:00 | https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/18043/xml | 2026-04-12T12:57:16.583000 | "# Advanced Education Statute Repeal Act\n\nSBC 2018, c 43\n\n# Advanced Education Statute Repeal Ac(...TRUNCATED) | "{\"1\": \"Repeal\\nThe Public Education Flexibility and Choice Act, S.B.C. 2002, c. 3, is repealed.(...TRUNCATED) | 2 | null | null | null | null | null | null | null | null | 0 | "See Upstream license available at: https://perma.cc/8F7Y-P8QD. NOTE: These materials contain inform(...TRUNCATED) |
RSBC 1996, c 7 | null | LEGISLATION-BC | Age of Majority Act | 1996-01-01T00:00:00 | https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/96007_01/xml | 2026-04-12T12:57:18.714000 | "# Age of Majority Act\n\nRSBC 1996, c 7\n\n# Age of Majority Act\n\n### Age of majority\n\n1 From A(...TRUNCATED) | "{\"1\": \"Age of majority\\n1 From April 15, 1970,\\na a person reaches the age of majority on beco(...TRUNCATED) | 7 | null | null | null | null | null | null | null | null | 0 | "See Upstream license available at: https://perma.cc/8F7Y-P8QD. NOTE: These materials contain inform(...TRUNCATED) |
RSBC 1996, c 10 | null | LEGISLATION-BC | Agricultural Land Commission Act | 1996-01-01T00:00:00 | https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/96010tc_01/xml | 2026-04-12T12:57:25.125000 | "# Agricultural Land Commission Act\n\nRSBC 1996, c 10\n\n# Agricultural Land Commission Act\n\n[Tit(...TRUNCATED) | null | 0 | null | null | null | null | null | null | null | null | 0 | "See Upstream license available at: https://perma.cc/8F7Y-P8QD. NOTE: These materials contain inform(...TRUNCATED) |
SBC 2002, c 36 | null | LEGISLATION-BC | Agricultural Land Commission Act | 2002-05-30T00:00:00 | https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/02036_01/xml | 2026-04-12T12:57:27.456000 | "# Agricultural Land Commission Act\n\nSBC 2002, c 36\n\n# Agricultural Land Commission Act\n\n### D(...TRUNCATED) | "{\"1\": \"Definitions\\n1 In this Act:\\n*additional residence* means a residence on a parcel of ag(...TRUNCATED) | 118 | null | null | null | null | null | null | null | null | 0 | "See Upstream license available at: https://perma.cc/8F7Y-P8QD. NOTE: These materials contain inform(...TRUNCATED) |
RSBC 1996, c 13 | null | LEGISLATION-BC | Anatomy Act | 1996-01-01T00:00:00 | https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/96013_01/xml | 2026-04-12T12:57:58.630000 | "# Anatomy Act\n\nRSBC 1996, c 13\n\n# Anatomy Act\n\n### Definition\n\n1 In this Act, *body* means (...TRUNCATED) | "{\"1\": \"Definition\\nIn this Act, *body* means the body of a deceased person\\na found publicly e(...TRUNCATED) | 10 | null | null | null | null | null | null | null | null | 0 | "See Upstream license available at: https://perma.cc/8F7Y-P8QD. NOTE: These materials contain inform(...TRUNCATED) |
A2AJ Canadian Laws
Last updated: 2026-04-12 Maintainer: Access to Algorithmic Justice (A2AJ)
Dataset Summary
The A2AJ Canadian Laws dataset provides bulk, open-access full-text legislation and regulations from Canada. Each row corresponds to a single law or regulation and contains the English and French versions where both are publicly available. The project builds on an earlier version that was maintained by the Refugee Law Lab (RLL) and is now maintained by A2AJ, a research project co-hosted by York University's Osgoode Hall Law School and Toronto Metropolitan University's Lincoln Alexander School of Law. The dataset is intended to support empirical legal research, legal-tech prototyping, and language-model pre-training in the public interest—especially work that advances access to justice for marginalised and low-income communities.
Dataset Structure (~ 10k documents)
| Code | Type | First document - Last document | Rows |
|---|---|---|---|
| LEGISLATION-FED | Federal Legislation | 1870-05-12 – 2025-06-26 | 954 |
| REGULATIONS-FED | Federal Regulations | 1945-12-21 – 2026-03-13 | 4,845 |
| LEGISLATION-ON | Ontario Legislation | 1986-07-28 – 2026-04-01 | 853 |
| REGULATIONS-ON | Ontario Regulations | 1990-12-31 – 2026-04-09 | 2,190 |
| LEGISLATION-BC | British Columbia Legislation | 1924-12-19 – 2026-03-12 | 585 |
| REGULATIONS-BC | British Columbia Regulations | 1975-04-22 – 2026-03-18 | 1,411 |
Note: Counts are approximate and will drift as the dataset is updated.
Data Fields
| Field | Type | Description |
|---|---|---|
dataset |
string |
Type identifier (eg. LEGISLATION-FED, REGULATIONS-ON) |
citation_en / citation_fr |
string |
Primary citation in English / French |
citation2_en / citation2_fr |
string |
Secondary citation(s) where available |
name_en / name_fr |
string |
Title of the law or regulation |
document_date_en / document_date_fr |
datetime64[ns, UTC] |
Date of the document |
source_url_en / source_url_fr |
string |
Source URL for the official XML version |
scraped_timestamp_en / scraped_timestamp_fr |
datetime64[ns, UTC] |
Timestamp when the page was scraped |
unofficial_text_en / unofficial_text_fr |
string |
Full unofficial text of the law/regulation |
unofficial_sections_en / unofficial_sections_fr |
string |
JSON string containing structured sections of the document |
| `upstream_license' | string |
License of the upstream source |
Missing values are represented as empty strings ("") or NaN.
Data Languages
Where available, rows include both English and French texts. Where only one language is published, the fields for the other language are empty.
Data Splits
All rows are provided in a single train split.
Data Loading
from datasets import load_dataset
import pandas as pd
# load specific type of laws (e.g. Federal Legislation)
laws = load_dataset("a2aj/canadian-laws", data_dir = "LEGISLATION-FED", split="train")
## ALTERNATIVELY
## load the entire corpus
# laws = load_dataset("a2aj/canadian-laws", split="train")
# convert to df
df = laws.to_pandas()
df.head(5)
The dataset is also offered in Parquet format for fast local use. Files are in subfolders with the dataset type names.
Dataset Creation
Curation Rationale
Building on open government initiatives, A2AJ is collecting and sharing Canadian legal data to:
- democratise access to Canadian legislation and regulations;
- enable large-scale empirical legal studies; and
- support responsible AI development for the justice sector.
Source Data & Normalisation
Laws and regulations are sourced from the Justice Canada Laws-Lois XML repository on GitHub, which contains official legislative data published by the Government of Canada. The XML files are parsed and normalised into a structured format with minimal processing (XML to plain text, cleanup, section parsing).
Personal & Sensitive Information
Legislation and regulations are public documents that do not typically include personal or sensitive information.
Non-Official Versions & Disclaimer
The texts here are unofficial copies derived from online source. For authoritative versions, consult the URLs in source_url_en / source_url_fr.
Non-Affiliation / Endorsement
A2AJ and this dataset are not affiliated with, nor endorsed by, the Government of Canada, Justice Canada or any provincial government.
Considerations for Using the Data
- Social Impact. Open legal data can reduce information asymmetries but should be used responsibly to ensure that derivative tools advance—rather than undermine—access to justice.
- Currency. Laws and regulations are living documents that change over time. This dataset represents a snapshot and may not reflect the most current versions. Always verify against official sources for legal purposes.
- Completeness. The dataset currently focuses on federal legislation and regulations.
Licensing Information
The code used to create the dataset by the A2AJ and any work on the dataset undertaken by the A2AJ is subject to an open source MIT license.
Users must also comply with upstream licenses found in the upstream_license field in the dataset for each document, which reflects the licenses through which the A2AJ obtained the document. These upstream licenses may include limits on commercial use, as well as other limitations.
The A2AJ is committed to open source methodologies, and we are actively working to obtain more permissive licenses for all data we collect.
Warranties / Representations
While we make best efforts to ensure the completeness and accuracy of our datasets, we provide no warranties regarding completeness or accuracy. The data were collected through automated processes and may contain errors. Always verify documents against the official source.
Dataset Curators
- Sean Rehaag - Co-Director, A2AJ
- Simon Wallace - Co-Director, A2AJ
- Contact: a2aj@yorku.ca
Citation
Sean Rehaag & Simon Wallace, "A2AJ Canadian Laws" (2025), online: Hugging Face Datasets https://huggingface.co/datasets/a2aj/canadian-laws.
Acknowledgements
This research output is supported in part by funding from the Law Foundation of Ontario and the Social Sciences and Humanities Research Council of Canada, by in-kind compute from the Digital Research Alliance of Canada and by administrative support from the Centre for Refugee Studies, the Refugee Law Lab, and Osgoode Hall Law School. We also thank Justice Canada for maintaining the open XML repository of federal laws and regulations.
- Downloads last month
- 278