text large_stringlengths 454 1.29M | title large_stringlengths 11 127 | english_title large_stringlengths 0 177 | document_type large_stringclasses 2
values | language large_stringclasses 2
values | jurisdiction large_stringclasses 1
value | category large_stringclasses 44
values | enactment_year_bs large_stringdate 2010-01-01 00:00:00 2082-01-01 00:00:00 ⌀ | enactment_year_ad large_stringdate 1953-01-01 00:00:00 2025-01-01 00:00:00 ⌀ | certification_date large_stringlengths 8 10 ⌀ | popularity_factor float64 0.2 1 ⌀ | source_file large_stringlengths 32 197 | char_count int64 454 1.29M | word_count int64 73 238k | line_count int64 12 18.9k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
अख्तियार दुरुपयोग अनुसन्धान आयोग ऐन, २०४८
लालमोहर र प्रकाशन मिति
२०४८।८।४
संशोधन गर्ने ऐन
१. अख्तियार दुरुपयोग अनुसन्धान आयोग (पहिलो संशोधन) ऐन, २०४८ २०४९।२।१६
२. अख्तियार दुरुपयोग अनुसन्धान आयोग (दोस्रो संशोधन) ऐन, २०५९ २०५९।४।३०
प्रमाणीकरण र प्रकाशन मिति
३. केही नेपाल कानून संशोधन गर्ने ऐन, २०६३ २०६३।६।२८
४. गणतन... | अख्तियार दुरुपयोग अनुसन्धान आयोग ऐन २०४८ | Commission for the Investigation of Abuse of Authority Act, 1991 | act | ne | Nepal | खण्ड १ देखी १७ अन्तर्गतका ऐन > खण्ड १:: संवैधानिक निकाय तथा सुशासन | 2048 | 1991 | null | 0.75 | acts/nepali_acts/अख्तियार_दुरुपयोग_अनुसन्धान_आयोग_ऐन_२०४८.json | 34,516 | 5,371 | 360 |
अचल सम्पत्ति अधिग्रहण ऐन, २०१३
लालमोहर सदर मिति
२०१३।५।१६
प्रकाशन मिति
२०१३।५।२२
संशोधन गर्ने ऐन
१. नेपाल ऐन संशोधन गर्ने ऐन, २०१८ २०१८।७।३० २०१८।८।१
२. केही नेपाल कानून (संशोधन र पुन: व्यवस्थापन) ऐन,२०२० २०२०।११।१६ २०२०।११।१६
प्रमाणीकरण र प्रकाशन मिति
३. गणतन्त्र सुदृढीकरण तथा केही नेपाल कानून संशोधन गर्ने ऐन, २... | अचल सम्पत्ति अधिग्रहण ऐन, २०१३ | Immovable Property Acquisition Act, 1956 | act | ne | Nepal | खण्ड १ देखी १७ अन्तर्गतका ऐन > खण्ड ४:: आन्तरिक प्रशासन | 2013 | 1956 | null | 0.2 | acts/nepali_acts/अचल_सम्पत्ति_अधिग्रहण_ऐन_२०१३.json | 7,985 | 1,273 | 103 |
अध्यागमन ऐन, २०४९
लालमोहर प्रकाशन मिति
२०४९।७।१७
संशोधन गर्ने ऐन
१. अध्यागमन (पहिलो संशोधन) ऐन, २०५० २०५०।६।२७
२. केही नेपाल ऐन संशोधन गर्ने ऐन, २०५३ २०५३।८।१२
प्रमाणीकरण र प्रकाशन मिति
३. गणतन्त्र सुदृढीकरण तथा केही नेपाल कानून संशोधन गर्ने ऐन, २०६६ २०६६।१०।७
४. केही नेपाल ऐन संशोधन गर्ने ऐन,२०७२ २०७२।११।१३
२०४९... | अध्यागमन ऐन, २०४९ | Immigration Act, 1992 | act | ne | Nepal | खण्ड १ देखी १७ अन्तर्गतका ऐन > खण्ड ४:: आन्तरिक प्रशासन | 2049 | 1992 | null | 0.2 | acts/nepali_acts/अध्यागमन_ऐन_२०४९.json | 8,813 | 1,423 | 136 |
"अनिवार्य तथा निःशुल्क शिक्षाको सम्ब(...TRUNCATED) | "अनिवार्य तथा निःशुल्क शिक्षाको सम्ब(...TRUNCATED) | Compulsory and Free Education Act, 2018 | act | ne | Nepal | "खण्ड १ देखी १७ अन्तर्गतका ऐन > खण्ड १४:: (...TRUNCATED) | 2075 | 2018 | २०७५।६।२ | 0.2 | "acts/nepali_acts/अनिवार्य_तथा_निःशुल्क_शिक्षाक(...TRUNCATED) | 29,882 | 4,468 | 386 |
"अनुगमन तथा मूल्याङ्कन ऐन, २०८०\n\nप्रमा(...TRUNCATED) | अनुगमन तथा मूल्याङ्कन ऐन, २०८० | Monitoring and Evaluation Act, 2024 | act | ne | Nepal | "खण्ड १ देखी १७ अन्तर्गतका ऐन > खण्ड १:: स(...TRUNCATED) | 2080 | 2024 | २०८०।१२।१६ | 0.2 | "acts/nepali_acts/अनुगमन_तथा_मूल्याङ्कन_ऐन_२०८०.js(...TRUNCATED) | 29,455 | 4,336 | 441 |
"अन्तः शुल्क ऐन, २०५८\n\nलालमोहर र प्रका(...TRUNCATED) | अन्तः शुल्क ऐन, २०५८ | Excise Act, 2002 | act | ne | Nepal | "खण्ड १ देखी १७ अन्तर्गतका ऐन > खण्ड ६:: र(...TRUNCATED) | 2058 | 2002 | null | 0.92 | acts/nepali_acts/अन्तः_शुल्क_ऐन_२०५८.json | 188,826 | 32,819 | 2,680 |
"अन्तर-सरकारी वित्त व्यवस्थापन ऐन, २०७(...TRUNCATED) | "अन्तर-सरकारी वित्त व्यवस्थापन ऐन, २०७(...TRUNCATED) | Inter-governmental Fiscal Management Act, 2017 | act | ne | Nepal | "खण्ड १ देखी १७ अन्तर्गतका ऐन > खण्ड ६:: र(...TRUNCATED) | 2074 | 2017 | २०७४।६।२७ | 0.2 | "acts/nepali_acts/अन्तर-सरकारी_वित्त_व्यवस्थापन_(...TRUNCATED) | 25,821 | 4,149 | 488 |
"अन्तर्राष्ट्रिय एकीकृत पर्वतीय विका(...TRUNCATED) | "अन्तर्राष्ट्रिय एकीकृत पर्वतीय विका(...TRUNCATED) | International Centre for Integrated Mountain Development (ICIMOD) Act, 1983 | act | ne | Nepal | "खण्ड १ देखी १७ अन्तर्गतका ऐन > खण्ड १४:: (...TRUNCATED) | 2040 | 1983 | २०४०।६।२४ | 0.2 | "acts/nepali_acts/अन्तर्राष्ट्रिय_एकीकृत_पर्वत(...TRUNCATED) | 10,801 | 1,618 | 127 |
"अन्तर्राष्ट्रिय फाइनान्स कर्पोरेशन(...TRUNCATED) | "अन्तर्राष्ट्रिय फाइनान्स कर्पोरेशन(...TRUNCATED) | International Finance Corporation Membership Act, 1965 | act | ne | Nepal | "खण्ड १ देखी १७ अन्तर्गतका ऐन > खण्ड ७:: म(...TRUNCATED) | 2022 | 1965 | null | 0.2 | "acts/nepali_acts/अन्तर्राष्ट्रिय_फाइनान्स_कर्(...TRUNCATED) | 10,565 | 1,462 | 159 |
"अन्तर्राष्ट्रिय विकास एशोसिएशनको सद(...TRUNCATED) | "अन्तर्राष्ट्रिय विकास एशोसिएशनको सद(...TRUNCATED) | International Development Association Membership Act, 1962 | act | ne | Nepal | "खण्ड १ देखी १७ अन्तर्गतका ऐन > खण्ड ७:: म(...TRUNCATED) | 2019 | 1962 | null | 0.2 | "acts/nepali_acts/अन्तर्राष्ट्रिय_विकास_एशोसिए(...TRUNCATED) | 11,582 | 1,675 | 158 |
Nepal Legal Pre‑training Corpus (Acts & Regulations – Unsplitted Version)
A clean, bilingual (Nepali ↔ English) collection of Nepal’s statutory Acts and Regulations, provided as unsplitted, full‑document records. This dataset is suitable for pre‑training small to medium legal language models (SLMs/LLMs) that can handle longer contexts, and for downstream tasks such as legal text generation, masked‑language modeling, and retrieval‑augmented generation.
📚 Dataset Overview
| Metric | Value |
|---|---|
| Total Documents | 1,054 |
– Nepali Acts (act, ne) |
369 |
– English Acts (act, en) |
366 |
– Nepali Regulations (regulation, ne) |
319 |
| Total Characters | 41,682,374 |
| Total Whitespace‑Separated Words | 6,458,291 |
| Average Document Length | ~39 k characters / ~6 k words |
The corpus contains full legal texts (including preambles, chapters, schedules, and annexes) without any artificial splitting. Every record preserves the original ordering and hierarchy of the source document.
⚙️ Configurations
| Config | Description | Documents |
|---|---|---|
default |
Complete corpus (all languages & document types) | 1 054 |
nepali |
Nepali‑only (Acts + Regulations) | 688 |
english |
English‑only (translated Acts) | 366 |
acts |
All Acts (both languages) | 735 |
regulations |
Regulations only (Nepali) | 319 |
Each configuration points to a set of Parquet files under the data/ folder, enabling efficient streaming via the 🤗 datasets library.
📂 Data Schema
| Field | Type | Description |
|---|---|---|
text |
string |
Full cleaned legal content (markdown stripped, Unicode‑normalized). |
title |
string |
Official Nepali title of the law (e.g., अख्तियार दुरुपयोग अनुसन्धान आयोग ऐन २०४८). |
english_title |
string |
English translation of the title (when available). |
document_type |
string |
"act" or "regulation". |
language |
string |
"ne" for Nepali, "en" for English. |
jurisdiction |
string |
Fixed to "Nepal". |
category |
string |
High‑level statutory grouping (derived from source metadata). |
enactment_year_bs |
int / null |
Bikram Sambat year extracted from the Nepali title. |
enactment_year_ad |
int / null |
Gregorian year extracted from the English title. |
certification_date |
string / null |
Gazette or certification date, if present in the header. |
popularity_factor |
float / null |
Relative importance weight (computed from citation frequency or official usage stats). |
source_file |
string |
Original JSON filename after title‑based renaming. |
char_count |
int |
Number of characters in text. |
word_count |
int |
Number of whitespace‑separated words in text. |
line_count |
int |
Number of lines in text. |
All numerical fields are pre‑computed to aid filtering and curriculum learning.
🧹 Cleaning & Pre‑processing Pipeline
- Unicode Normalization – NFC normalization ensures consistent representation of Devanagari characters.
- Line‑Ending Normalization – Converts all line endings to
\n. - Whitespace Collapsing – Replaces runs of blank lines with a single newline and trims trailing spaces.
- Markdown Removal – Strips
**,##, code fences, and any residual HTML tags to prevent token fragmentation. - Character‑Count Validation – Confirms that each document’s
char_countmatches the length of the cleanedtext.
The pipeline is fully reproducible in build_hf_full_corpus.py (located in the repository root).
💻 Example Usage
Install the datasets library if you do not already have it:
pip install datasets
Load the full, unsplitted corpus:
from datasets import load_dataset
dataset = load_dataset(
"chhatramani/Nepal_Legal_Acts_Regulation_Corpus",
name="default", # swap with "nepali", "english", "acts", or "regulations" as needed
split="train"
)
# Inspect the first record
print(dataset[0])
Filtering by Language & Document Type
# Nepali Acts only
nepali_acts = dataset.filter(
lambda x: x["language"] == "ne" and x["document_type"] == "act"
)
print(f"Nepali Acts: {len(nepali_acts)} documents")
Streaming Large Datasets
Parquet files enable streaming without loading the entire corpus into memory:
from datasets import load_dataset
stream = load_dataset(
"chhatramani/Nepal_Legal_Acts_Regulation_Corpus",
name="default",
split="train",
streaming=True
)
for record in stream.take(5):
print(record["title"])
📜 License
The dataset is released under the Creative Commons Attribution 4.0 International (CC‑BY‑4.0) license.
You must give appropriate credit, provide a link to the license, and indicate if changes were made.
📖 Citation
@dataset{chhatramani2026nepal_legal_unsplit,
title = {Nepal Legal Pre‑training Corpus (Acts \& Regulations)},
publisher = {Hugging Face},
year = 2026,
month = nov,
version = {v1.0},
url = {[https://huggingface.co/datasets/chhatramani/Nepal_Legal_Acts_Regulation_Corpus](https://huggingface.co/datasets/chhatramani/Nepal_Legal_Acts_Regulation_Corpus)},
doi = {10.57967/hf/xxxxxx},
note = {CC‑BY‑4.0}
}
🙏 Acknowledgements
- Law Commission of Nepal – source of the original PDFs and statutory texts.
- The open‑source community for the cleaning scripts and the 🤗 datasets infrastructure.
Feel free to open an issue on the HF hub or contact the maintainer for further assistance, feature requests, or collaboration opportunities.
- Downloads last month
- 58