Datasets:
File size: 6,714 Bytes
8e3160a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | ---
language:
- en
license: mit
size_categories:
- 10K<n<100K
task_categories:
- text-generation
- question-answering
- fill-mask
- text-retrieval
tags:
- legal
- statutory-law
- us-law
- washington-state
pretty_name: Washington State Law (RCW) 2026
---
The Revised Code of Washington (RCW) - 2026 Edition
====================================================================
Dataset Summary
---------------
The Revised Code of Washington (RCW) 2026 Edition dataset is a comprehensive, structured corpus containing the full text of all permanent laws in force in the State of Washington as of 2026. This dataset provides the statutory provisions in a standardized, machine-readable format, designed specifically to facilitate legal Natural Language Processing (NLP) research.
This release curates the official legislative texts into a clean JSON array structure, isolating the statutory section numbers, titles, and underlying legislative text (including statutory notes and citations). It serves as a foundational resource for training, fine-tuning, and evaluating language models on highly structured, domain-specific legal language.
Motivation and Intended Use
---------------------------
The intersection of artificial intelligence and law requires robust, high-quality public-domain datasets. While federal laws (e.g., the U.S. Code) are frequently modeled, state-level statutory frameworks represent a critical, albeit under-resourced, domain for legal AI research.
**Intended Use Cases:**
* **Language Model Pre-training and Adaptation:** Continual pre-training or fine-tuning of Large Language Models (LLMs) to improve comprehension of statutory drafting conventions and legal terminology.
* **Information Retrieval (IR):** Developing and evaluating dense retrieval systems for legal search and semantic matching.
* **Question Answering (QA):** Providing a reliable knowledge base for retrieval-augmented generation (RAG) and open-domain statutory QA.
* **Legal Text Summarization:** Generating accessible summaries of complex statutory provisions.
* **Network Analysis:** Analyzing cross-references and citations within the text to map the dependency structure of state law.
Dataset Structure
-----------------
The dataset is distributed as a single, contiguous JSON array. Each element in the array represents a unique section of the RCW.
### Data Fields:
| Field | Description |
| --- | --- |
| `rcw_number` | The official, hierarchical section identifier of the Revised Code of Washington (e.g., "1.04.010"), corresponding to Title, Chapter, and Section |
| `title` | The official heading or catchline of the statutory section |
| `text` | The complete, unabridged statutory text including legislative histories, notes, and citations |
### Data Instances:
A representative sample from the dataset:
```json
[
{
"rcw_number": "1.04.010",
"title": "Revised Code of Washington enacted.",
"text": "The ninety-one titles with chapters and sections designated as the \"Revised Code of Washington\" ..."
}
]
```
Data Collection and Preprocessing Methodology
---------------------------------------------
**Data Source:** The data was systematically acquired by scraping the publicly accessible, official repositories of the Washington State Legislature for the 2026 legislative year.
**Preprocessing Pipeline:**
1. **Extraction:** HTML/XML hierarchies were parsed to isolate individual sections, ensuring no omission of sub-sections or appended notes.
2. **Text Normalization:** Extraneous web formatting, navigational elements, and visual artifacts were stripped. Unicode anomalies were normalized.
3. **Structural Alignment:** Sections were programmatically validated against the official RCW table of contents to ensure completeness and strict adherence to the Title.Chapter.Section naming convention.
4. **Validation:** A random subset of entries was manually audited against the official legislative website to verify extraction fidelity.
Limitations and Potential Biases
--------------------------------
Researchers should be aware of the following structural and conceptual limitations when utilizing this dataset:
* **Temporal Scope:** This dataset reflects the statutory law as of the 2026 edition. Laws are subject to amendment, repeal, or judicial invalidation. It does not capture legislative changes enacted post-2026.
* **Absence of Case Law:** The RCW represents statutory law only. In the U.S. common law system, the interpretation and enforcement of these statutes are heavily dictated by judicial precedent (case law) and agency regulations, neither of which are included in this corpus.
* **Jurisdictional Specificity:** The linguistic patterns, definitions, and legal frameworks present in this dataset are highly specific to Washington State. Models trained exclusively on this dataset may experience performance degradation when applied to the legal frameworks of other states or federal jurisdictions.
Legal and Ethical Considerations
--------------------------------
### Licensing and Public Domain Status
In accordance with U.S. copyright law and the "Edicts of Government" doctrine (reaffirmed by the Supreme Court in _Georgia v. Public.Resource.Org, Inc._, 140 S. Ct. 1498 (2020)), the official statutes and laws of a state are not subject to copyright protection. Consequently, this dataset of the Revised Code of Washington is released into the **Public Domain**.
Users are free to copy, modify, distribute, and perform the work, even for commercial purposes, without requesting permission.
### Responsible Use
**Not a Substitute for Legal Counsel:** This dataset is provided strictly for academic, research, and computational purposes. Machine learning models trained or evaluated on this data **must not** be deployed to provide automated legal advice, counsel, or definitive legal interpretations to the public.
The application of statutory law to specific factual scenarios requires the independent professional judgment of a qualified attorney. Developers utilizing this dataset for downstream applications should implement robust safeguards and user-facing disclaimers to prevent the unauthorized or misleading practice of law.
Citation
--------
If you use this dataset in your research, please cite it as follows:
```bibtex
@misc{rcw_dataset_2026,
author = {Shlok, Tomar},
title = {Revised Code of Washington (RCW) Dataset - 2026 Edition},
year = {2026},
publisher = {Hugging Face},
howpublished={\url{https://huggingface.co/CSI-lab/Law_RCW_Dataset}},
note = {A structured corpus of the 2026 Revised Code of Washington for Legal NLP.}
}
``` |