Datasets:
a2aj
/

Modalities:
Tabular
Text
Formats:
parquet
Libraries:
Datasets
Dask
License:
Dataset Viewer
Auto-converted to Parquet
citation_en
stringlengths
7
35
citation2_en
stringclasses
955 values
dataset
stringclasses
2 values
name_en
stringlengths
8
485
document_date_en
timestamp[ns, tz=UTC]date
1870-05-12 00:00:00
2025-07-16 00:00:00
source_url_en
stringlengths
65
96
scraped_timestamp_en
timestamp[ns, tz=UTC]date
2025-08-10 00:00:00
2025-08-10 00:00:00
unofficial_text_en
stringlengths
121
8.71M
unofficial_sections_en
large_stringlengths
2
7.23M
num_sections_en
int64
0
9.7k
citation_fr
stringlengths
7
37
citation2_fr
stringclasses
955 values
name_fr
stringlengths
13
555
document_date_fr
timestamp[ns, tz=UTC]date
1870-05-12 00:00:00
2025-07-16 00:00:00
source_url_fr
stringlengths
65
96
scraped_timestamp_fr
timestamp[ns, tz=UTC]date
2025-08-10 00:00:00
2025-08-10 00:00:00
unofficial_text_fr
stringlengths
139
9.27M
unofficial_sections_fr
large_stringlengths
2
7.71M
num_sections_fr
int64
0
9.7k
upstream_license
stringclasses
2 values
SC 2019, c 10
A-0.6
LEGISLATION-FED
Accessible Canada Act
2019-06-21T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/eng/acts
2025-08-10T00:00:00
"# Accessible Canada Act\n\nSC 2019, c 10\n\nAn Act to ensure a barrier-free Canada\n\nAssented to 2(...TRUNCATED)
"{\"1\": \"Short title This Act may be cited as the Accessible Canada Act.\", \"2\": \"Definitions T(...TRUNCATED)
209
LC 2019, c 10
A-0.6
Loi canadienne sur l’accessibilité
2019-06-21T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/fra/lois
2025-08-10T00:00:00
"# Loi canadienne sur l’accessibilité\n\nLC 2019, c 10\n\nLoi visant à faire du Canada un pays e(...TRUNCATED)
"{\"1\": \"Titre abrégé Loi canadienne sur l’accessibilité.\", \"2\": \"Définitions Les défin(...TRUNCATED)
209
"See upstream license, including requirements related to attribution, non-endorsement, and reproduct(...TRUNCATED)
RSC 1985, c A-1
A-1
LEGISLATION-FED
Access to Information Act
1988-12-12T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/eng/acts
2025-08-10T00:00:00
"# Access to Information Act\n\nRSC 1985, c A-1\n\nAn Act to extend the present laws of Canada that (...TRUNCATED)
"{\"1\": \"Short title This Act may be cited as the Access to Information Act. 1980-81-82-83, c. 111(...TRUNCATED)
172
LRC 1985, c A-1
A-1
Loi sur l’accès à l’information
1988-12-12T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/fra/lois
2025-08-10T00:00:00
"# Loi sur l’accès à l’information\n\nLRC 1985, c A-1\n\nLoi visant à compléter la législat(...TRUNCATED)
"{\"1\": \"Titre abrégé Loi sur l’accès à l’information. 1980-81-82-83, ch. 111, ann. I « (...TRUNCATED)
172
"See upstream license, including requirements related to attribution, non-endorsement, and reproduct(...TRUNCATED)
SC 2018, c 27, s 675
A-1.3
LEGISLATION-FED
Addition of Lands to Reserves and Reserve Creation Act
2018-12-13T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/eng/acts
2025-08-10T00:00:00
"# Addition of Lands to Reserves and Reserve Creation Act\n\nSC 2018, c 27, s 675\n\nAn Act to facil(...TRUNCATED)
"{\"1\": \"Short title This Act may be cited as the Addition of Lands to Reserves and Reserve Creati(...TRUNCATED)
8
LC 2018, c 27, art 675
A-1.3
Loi sur l’ajout de terres aux réserves et la création de réserves
2018-12-13T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/fra/lois
2025-08-10T00:00:00
"# Loi sur l’ajout de terres aux réserves et la création de réserves\n\nLC 2018, c 27, art 675\(...TRUNCATED)
"{\"1\": \"Titre abrégé Loi sur l’ajout de terres aux réserves et la création de réserves.\",(...TRUNCATED)
8
"See upstream license, including requirements related to attribution, non-endorsement, and reproduct(...TRUNCATED)
SC 2014, c 20, s 376
A-1.5
LEGISLATION-FED
Administrative Tribunals Support Service of Canada Act
2014-06-19T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/eng/acts
2025-08-10T00:00:00
"# Administrative Tribunals Support Service of Canada Act\n\nSC 2014, c 20, s 376\n\nAn Act to estab(...TRUNCATED)
"{\"1\": \"Short title This Act may be cited as the Administrative Tribunals Support Service of Cana(...TRUNCATED)
18
LC 2014, c 20, art 376
A-1.5
Loi sur le Service canadien d’appui aux tribunaux administratifs
2014-06-19T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/fra/lois
2025-08-10T00:00:00
"# Loi sur le Service canadien d’appui aux tribunaux administratifs\n\nLC 2014, c 20, art 376\n\nL(...TRUNCATED)
"{\"1\": \"Titre abrégé Loi sur le Service canadien d’appui aux tribunaux administratifs.\", \"2(...TRUNCATED)
18
"See upstream license, including requirements related to attribution, non-endorsement, and reproduct(...TRUNCATED)
RSC 1985, c 35 (4th Supp)
A-10.1
LEGISLATION-FED
Air Canada Public Participation Act
1989-11-01T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/eng/acts
2025-08-10T00:00:00
"# Air Canada Public Participation Act\n\nRSC 1985, c 35 (4th Supp)\n\nAn Act to provide for the con(...TRUNCATED)
"{\"1\": \"Short title This Act may be cited as the Air Canada Public Participation Act.\", \"2\": \(...TRUNCATED)
16
LRC 1985, c 35 (4e suppl)
A-10.1
Loi sur la participation publique au capital d’Air Canada
1989-11-01T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/fra/lois
2025-08-10T00:00:00
"# Loi sur la participation publique au capital d’Air Canada\n\nLRC 1985, c 35 (4e suppl)\n\nLoi p(...TRUNCATED)
"{\"1\": \"Titre abrégé Loi sur la participation publique au capital d’Air Canada.\", \"2\": \"D(...TRUNCATED)
16
"See upstream license, including requirements related to attribution, non-endorsement, and reproduct(...TRUNCATED)
SC 1992, c 5
A-10.4
LEGISLATION-FED
Airport Transfer (Miscellaneous Matters) Act
1992-03-19T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/eng/acts
2025-08-10T00:00:00
"# Airport Transfer (Miscellaneous Matters) Act\n\nSC 1992, c 5\n\nAn Act to provide for certain mat(...TRUNCATED)
"{\"1\": \"Short title This Act may be cited as the Airport Transfer (Miscellaneous Matters) Act.\",(...TRUNCATED)
11
LC 1992, c 5
A-10.4
Loi relative aux cessions d’aéroports
1992-03-19T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/fra/lois
2025-08-10T00:00:00
"# Loi relative aux cessions d’aéroports\n\nLC 1992, c 5\n\nLoi réglant certaines questions soul(...TRUNCATED)
"{\"1\": \"Titre abrégé Loi relative aux cessions d’aéroports.\", \"2\": \"Définitions (1) Les(...TRUNCATED)
11
"See upstream license, including requirements related to attribution, non-endorsement, and reproduct(...TRUNCATED)
SC 2002, c 9, s 5
A-10.5
LEGISLATION-FED
Air Travellers Security Charge Act
2002-03-27T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/eng/acts
2025-08-10T00:00:00
"# Air Travellers Security Charge Act\n\nSC 2002, c 9, s 5\n\nAn Act to implement an air travellers (...TRUNCATED)
"{\"1\": \"Short title This Act may be cited as the Air Travellers Security Charge Act.\", \"2\": \"(...TRUNCATED)
89
LC 2002, c 9, art 5
A-10.5
Loi sur le droit pour la sécurité des passagers du transport aérien
2002-03-27T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/fra/lois
2025-08-10T00:00:00
"# Loi sur le droit pour la sécurité des passagers du transport aérien\n\nLC 2002, c 9, art 5\n\n(...TRUNCATED)
"{\"1\": \"Titre abrégé Loi sur le droit pour la sécurité des passagers du transport aérien.\",(...TRUNCATED)
89
"See upstream license, including requirements related to attribution, non-endorsement, and reproduct(...TRUNCATED)
SC 1930, c 3
A-10.6
LEGISLATION-FED
Alberta Natural Resources Act
1930-05-30T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/eng/acts
2025-08-10T00:00:00
"# Alberta Natural Resources Act\n\nSC 1930, c 3\n\nAn Act respecting the transfer of the Natural Re(...TRUNCATED)
"{\"1\": \"Short title This Act may be cited as The Alberta Natural Resources Act.\", \"2\": \"Agree(...TRUNCATED)
2
SC 1930, c 3
A-10.6
Loi des ressources naturelles de l’Alberta
1930-05-30T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/fra/lois
2025-08-10T00:00:00
"# Loi des ressources naturelles de l’Alberta\n\nSC 1930, c 3\n\nLoi concernant le transfert des r(...TRUNCATED)
"{\"1\": \"Titre abrégé La présente loi peut être citée sous le titre : Loi des ressources natu(...TRUNCATED)
2
"See upstream license, including requirements related to attribution, non-endorsement, and reproduct(...TRUNCATED)
SC 1995, c 20
A-10.7
LEGISLATION-FED
Alternative Fuels Act
1995-06-22T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/eng/acts
2025-08-10T00:00:00
"# Alternative Fuels Act\n\nSC 1995, c 20\n\nAn Act to accelerate the use of alternative fuels for m(...TRUNCATED)
"{\"1\": \"Short title This Act may be cited as the Alternative Fuels Act.\", \"2\": \"Definitions ((...TRUNCATED)
8
LC 1995, c 20
A-10.7
Loi sur les carburants de remplacement
1995-06-22T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/fra/lois
2025-08-10T00:00:00
"# Loi sur les carburants de remplacement\n\nLC 1995, c 20\n\nLoi visant à promouvoir l’utilisati(...TRUNCATED)
"{\"1\": \"Titre abrégé Titre abrégé : Loi sur les carburants de remplacement.\", \"2\": \"Déf(...TRUNCATED)
8
"See upstream license, including requirements related to attribution, non-endorsement, and reproduct(...TRUNCATED)
RSC 1985, c 8 (4th Supp)
A-11.2
LEGISLATION-FED
Animal Pedigree Act
1989-11-01T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/eng/acts
2025-08-10T00:00:00
"# Animal Pedigree Act\n\nRSC 1985, c 8 (4th Supp)\n\nAn Act respecting animal pedigree associations(...TRUNCATED)
"{\"1\": \"Short title This Act may be cited as the Animal Pedigree Act.\", \"2\": \"Definitions In (...TRUNCATED)
77
LRC 1985, c 8 (4e suppl)
A-11.2
Loi sur la généalogie des animaux
1989-11-01T00:00:00
https://github.com/justicecanada/laws-lois-xml/tree/main/fra/lois
2025-08-10T00:00:00
"# Loi sur la généalogie des animaux\n\nLRC 1985, c 8 (4e suppl)\n\nLoi concernant les association(...TRUNCATED)
"{\"1\": \"Titre abrégé Loi sur la généalogie des animaux.\", \"2\": \"Définitions Les définit(...TRUNCATED)
77
"See upstream license, including requirements related to attribution, non-endorsement, and reproduct(...TRUNCATED)
End of preview. Expand in Data Studio

A2AJ Canadian Laws

Last updated: 2025-08-10 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 (~ 5k documents)

Code Type First document - Last document Rows
LEGISLATION-FED Federal Legislation (Acts) 1870-05-12 – 2025-06-26 954
REGULATIONS-FED Federal Regulations 1945-12-21 – 2025-07-16 4,803

Note: Counts are approximate and will drift as the dataset is updated.

Data Fields

Field Type Description
dataset string Type identifier (LEGISLATION-FED or REGULATIONS-FED)
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 or visit the Justice Laws Website.

Non-Affiliation / Endorsement

A2AJ and this dataset are not affiliated with, nor endorsed by, the Government of Canada or Justice Canada.


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


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
191