Dataset Viewer
Auto-converted to Parquet Duplicate
act_title
stringlengths
12
193
act_no
stringclasses
235 values
act_year
stringdate
1799-01-01 00:00:00
2025-01-01 00:00:00
publication_date
stringdate
2025-07-19 00:00:00
2025-07-19 00:00:00
language
stringclasses
4 values
is_repealed
bool
2 classes
token_count
int64
119
87.8k
num_sections
int64
0
586
sections
listlengths
0
586
footnotes
listlengths
0
974
govt_system
stringclasses
14 values
position_head_govt
stringclasses
11 values
head_govt_name
stringclasses
42 values
head_govt_designation
stringclasses
17 values
how_got_power
stringclasses
20 values
period_years
stringclasses
63 values
years_in_power
int64
0
15
legal_system_context
stringclasses
225 values
source_url
stringlengths
44
47
THE1[***] WILLS AND INTESTACY REGULATION, 1799
V
1799
19/07/2025
english
false
1,277
7
[ { "section_title": "", "section_content": "2. In all cases of Hindu, Mussalman or other person subject to the jurisdiction of the Zila Courts, having at his death left a will and appointed an executor or executors to carry the same into effect, and in which the heir to the deceased may not be a disqualified...
[ "1The word \"Bengal\" was omitted by Article 6 of theBangladesh (Adaptation of Existing Laws) Order, 1972(President’s Order No. 48 of 1972).", "2The word “Bangladesh” was substituted of the word “Province” by Article 5 of theBangladesh (Adaptation of Existing Laws) Order, 1972(President’s Order No. 48 of 1972)....
Company Rule (Dual System until 1772)
Governor-General of Bengal
Marquess of Wellesley (Richard Wellesley)
Governor-General of Fort William in Bengal
East India Company appointment
1799-1805
6
{"period_info":{"period_name":"East India Company Rule","year_range":"1773-1858","act_year":1799},"legal_framework":{"primary_laws":["Regulating Act 1773","Bengal Regulations","Anglo-Muhammadan Law","Cornwallis Code 1793"],"court_system":["Supreme Court at Fort William (1774)","District Courts","Company Courts"],"legal...
http://bdlaws.minlaw.gov.bd/act-print-1315.html
THE1[***] CHARITABLE ENDOWMENTS PUBLIC BUILDINGS AND ESCHEATS REGULATION, 1810
XIX
1810
19/07/2025
english
false
2,034
16
[ { "section_title": "", "section_content": "2. The general superintendence of all lands granted for the support of colleges and for other beneficial purposes, and of all public buildings, such as bridges, sarais, kattras and otheredifices, is hereby vested in the3[Deputy Commissioner]" }, { "section_...
[ "1The word \"Bengal\" was omitted by Article 6 of theBangladesh (Adaptation of Existing Laws) Order, 1972(President’s Order No. 48 of 1972).", "2The word \"Bangladesh\" was substituted by Article 5 of theBangladesh (Adaptation of Existing Laws) Order, 1972(President’s Order No. 48 of 1972).", "3The word \"Deput...
Company Rule
Governor-General of Bengal
Lord Minto (Gilbert Elliot-Murray-Kynynmound)
Governor-General of Fort William in Bengal
Company appointment
1807-1813
6
{"period_info":{"period_name":"East India Company Rule","year_range":"1773-1858","act_year":1810},"legal_framework":{"primary_laws":["Regulating Act 1773","Bengal Regulations","Anglo-Muhammadan Law","Cornwallis Code 1793"],"court_system":["Supreme Court at Fort William (1774)","District Courts","Company Courts"],"legal...
http://bdlaws.minlaw.gov.bd/act-print-1316.html
THE1[***] STATE PRISONERS REGULATION, 1818
III
1818
19/07/2025
english
false
1,570
18
[ { "section_title": "", "section_content": "2. First.- When the reasons stated in the preamble of this Regulation may seem to the Government to require that an individual should be placed under personal restraint, without any immediate view to ulterior proceedings of a judicial nature, a warrant of commitmen...
[ "1The word \"Bengal\" was omitted by Article 6 of the Bangladesh (Adaptation of Existing Laws) Order, 1972 (President’s Order No. 48 of 1972).", "2The word \"Bangladesh\" was substituted for the word \"Pakistan\" by Article 5 of the Bangladesh (Adaptation of Existing Lows) order, 1972 (President's Order No. 48 ...
Company Rule
Governor-General of India
Marquess of Hastings (Francis Rawdon-Hastings)
Governor-General of India (ex-officio Governor of Bengal)
Company appointment
1813-1823
10
{"period_info":{"period_name":"East India Company Rule","year_range":"1773-1858","act_year":1818},"legal_framework":{"primary_laws":["Regulating Act 1773","Bengal Regulations","Anglo-Muhammadan Law","Cornwallis Code 1793"],"court_system":["Supreme Court at Fort William (1774)","District Courts","Company Courts"],"legal...
http://bdlaws.minlaw.gov.bd/act-print-1317.html
THE1[***] GOVERNMENT INDEMNITY REGULATION, 1822
XI
1822
19/07/2025
english
false
510
6
[ { "section_title": "", "section_content": "2. [Repeals.] Rep. by the Amending Act, 1903 (1 of 1903)." }, { "section_title": "", "section_content": "3.to 35. Rep. by the Bengal Land-revenue Sales Act, 1841 (XII of 1841)." }, { "section_title": "", "section_content": "36. If a Collecto...
[ "1The word \"Bengal\" was omitted by Article 6 of theBangladesh (Adaptation of Existing Laws) Order, 1972(President’s Order No. 48 of 1972)." ]
Company Rule
Governor-General of India
Marquess of Hastings (Francis Rawdon-Hastings)
Governor-General of India (ex-officio Governor of Bengal)
Company appointment
1813-1823
10
{"period_info":{"period_name":"East India Company Rule","year_range":"1773-1858","act_year":1822},"legal_framework":{"primary_laws":["Regulating Act 1773","Bengal Regulations","Anglo-Muhammadan Law","Cornwallis Code 1793"],"court_system":["Supreme Court at Fort William (1774)","District Courts","Company Courts"],"legal...
http://bdlaws.minlaw.gov.bd/act-print-1318.html
THE1[***] ALLUVION AND DILUVION REGULATION, 1825
XI
1825
19/07/2025
english
false
1,026
10
[ { "section_title": "", "section_content": "2. Whenever any clear and definite usage of Shikast paiwast respecting the disjunction and junction of land by the encroachment or recess of a river may have been immemorially established, for determining the rights of the proprietors of two or more contiguous esta...
[ "1The word \"Bengal\" was omitted by Article 6 of theBangladesh (Adaptation of Existing Laws) Order, 1972(President’s Order No. 48 of 1972)." ]
Company Rule
Governor-General of India
Lord Amherst (William Amherst)
Governor-General of India
Company appointment
1823-1828
5
{"period_info":{"period_name":"East India Company Rule","year_range":"1773-1858","act_year":1825},"legal_framework":{"primary_laws":["Regulating Act 1773","Bengal Regulations","Anglo-Muhammadan Law","Cornwallis Code 1793"],"court_system":["Supreme Court at Fort William (1774)","District Courts","Company Courts"],"legal...
http://bdlaws.minlaw.gov.bd/act-print-1319.html
THE1[***] REVENUE COMMISSIONERS REGULATION, 1829
I
1829
19/07/2025
english
false
640
9
[ { "section_title": "", "section_content": "2.A Commissioner of Revenue and Circuit shall be appointed for each of the under-mentioned divisions :Provided, however, that it shall be competent to the4[Government] by an order, to transfer any district or districts from one division to another, and to increase ...
[ "1The word \"Bengal\" was omitted by Article 6 of the Bangladesh (Adaptation of Existing Laws) Order, 1972 (President’s Order No. 48 of 1972).", "2The commas and words \", and for controlling and directing the executive Revenue officers, who in several cases are also magistrates,\" were omitted by Article 3, Sc...
Company Rule
Governor-General of India
Lord William Bentinck
Governor-General of India
Company appointment
1828-1835
7
{"period_info":{"period_name":"East India Company Rule","year_range":"1773-1858","act_year":1829},"legal_framework":{"primary_laws":["Regulating Act 1773","Bengal Regulations","Anglo-Muhammadan Law","Cornwallis Code 1793"],"court_system":["Supreme Court at Fort William (1774)","District Courts","Company Courts"],"legal...
http://bdlaws.minlaw.gov.bd/act-print-1320.html
THE1[***] SATI REGULATION, 1829
XVII
1829
19/07/2025
english
false
682
6
[ { "section_title": "", "section_content": "2. The practice of sati or burning or burying alive the widows of Hindus is hereby declared illegal and punishable by the Criminal Courts." }, { "section_title": "", "section_content": "3. First.- All Zamindars, talukdars or other proprietors of land, w...
[ "1The word \"Bengal\" was omitted by Article 6 of theBangladesh (Adaptation of Existing Laws) Order, 1972(President’s Order No. 48 of 1972)." ]
Company Rule
Governor-General of India
Lord William Bentinck
Governor-General of India
Company appointment
1828-1835
7
{"period_info":{"period_name":"East India Company Rule","year_range":"1773-1858","act_year":1829},"legal_framework":{"primary_laws":["Regulating Act 1773","Bengal Regulations","Anglo-Muhammadan Law","Cornwallis Code 1793"],"court_system":["Supreme Court at Fort William (1774)","District Courts","Company Courts"],"legal...
http://bdlaws.minlaw.gov.bd/act-print-1321.html
THE1[***] LAND-REVENUE (SETTLEMENT AND DEPUTY COLLECTORS) REGULATION, 1833
IX
1833
19/07/2025
english
false
1,122
21
[ { "section_title": "", "section_content": "2. [Repeal of provisions of Regulation VII of 1822, as to mode of determining jama to be demanded from mahal] Rep. by the Amending Act, 1903 (I of 1903)." }, { "section_title": "", "section_content": "3. [Repeal of provisions of Regulation VII of 1822 a...
[ "1The word \"Bengal\" was omitted by Article 6 of theBangladesh (Adaptation of Existing Laws) Order, 1972(President’s Order No. 48 of 1972).", "2Throughout this Regulation, the word \"Government\" was replaced for the words \"the Central Government\", \"the Government of Pakistan\", \"the Provincial Government\" ...
Company Rule
Governor-General of India
Lord William Bentinck
Governor-General of India
Company appointment
1828-1835
7
{"period_info":{"period_name":"East India Company Rule","year_range":"1773-1858","act_year":1833},"legal_framework":{"primary_laws":["Regulating Act 1773","Bengal Regulations","Anglo-Muhammadan Law","Cornwallis Code 1793"],"court_system":["Supreme Court at Fort William (1774)","District Courts","Company Courts"],"legal...
http://bdlaws.minlaw.gov.bd/act-print-1322.html
1The Districts Act, 1836
XXI
1836
19/07/2025
english
false
258
1
[ { "section_title": "", "section_content": "It shall be lawful for the2[***] Government, by notification in the official Gazette, to create new districts in any part of Bangladesh.3[Government may, from time to time, alter the limits of the existing districts in any part of Bangladesh]." } ]
[ "1The word “BENGAL” was omitted by section 3 and 2nd Schedule of theBangladesh Laws (Revision And Declaration) Act, 1973(Act No. VIII of 1973).", "2The word “Provincial” was omitted by section 3 and 2nd Schedule of theBangladesh Laws (Revision And Declaration) Act, 1973(Act No. VIII of 1973)", "3The second para...
Company Rule
Governor-General of India
Lord Auckland (George Eden)
Governor-General of India
Company appointment
1835-1842
7
{"period_info":{"period_name":"East India Company Rule","year_range":"1773-1858","act_year":1836},"legal_framework":{"primary_laws":["Regulating Act 1773","Bengal Regulations","Anglo-Muhammadan Law","Cornwallis Code 1793"],"court_system":["Supreme Court at Fort William (1774)","District Courts","Company Courts"],"legal...
http://bdlaws.minlaw.gov.bd/act-print-1.html
The Public Accountant's Default Act, 1850
XII
1850
19/07/2025
english
false
507
6
[ { "section_title": "", "section_content": "1. Every public accountant shall give security for the due discharge of the trusts of his office, and for the due account of all moneys which shall come into his possession or control, by reason of his office." }, { "section_title": "", "section_content...
[]
Company Rule
Governor-General of India
Earl of Dalhousie (James Broun-Ramsay)
Governor-General of India
Company appointment
1848-1856
8
{"period_info":{"period_name":"East India Company Rule","year_range":"1773-1858","act_year":1850},"legal_framework":{"primary_laws":["Regulating Act 1773","Bengal Regulations","Anglo-Muhammadan Law","Cornwallis Code 1793"],"court_system":["Supreme Court at Fort William (1774)","District Courts","Company Courts"],"legal...
http://bdlaws.minlaw.gov.bd/act-print-2.html
The Judicial Officer's Protection Act, 1850
XVIII
1850
19/07/2025
english
false
295
1
[ { "section_title": "", "section_content": "1. No Judge, Magistrate, Justice of the Peace, Collector or other person acting judicially shall be liable to be sued in any Civil Court for any act done or ordered to be done by him in the discharge of his judicial duty, whether or not within the limits of his jur...
[]
Company Rule
Governor-General of India
Earl of Dalhousie (James Broun-Ramsay)
Governor-General of India
Company appointment
1848-1856
8
{"period_info":{"period_name":"East India Company Rule","year_range":"1773-1858","act_year":1850},"legal_framework":{"primary_laws":["Regulating Act 1773","Bengal Regulations","Anglo-Muhammadan Law","Cornwallis Code 1793"],"court_system":["Supreme Court at Fort William (1774)","District Courts","Company Courts"],"legal...
http://bdlaws.minlaw.gov.bd/act-print-3.html
The Public Servants (Inquiries) Act, 1850
XXXVII
1850
19/07/2025
english
false
1,750
24
[ { "section_title": "", "section_content": "1. [Repealed by the Repealing Act, 1870 (Act No. XIV of 1870).]" }, { "section_title": "", "section_content": "2. Whenever the Government shall be of opinion that there are good grounds for making a formal and public inquiry into the truth of any imputa...
[ "1The word \"Bangladesh\" was substituted, for the word \"Pakistan\" by section 3 and 2nd Schedule of theBangladesh Laws (Revision And Declaration) Act, 1973(Act No. VIII of 1973)", "2The words “in the service of the Republic” were substituted, for the words “in the service of the Government” by section 3 and 2nd...
Company Rule
Governor-General of India
Earl of Dalhousie (James Broun-Ramsay)
Governor-General of India
Company appointment
1848-1856
8
{"period_info":{"period_name":"East India Company Rule","year_range":"1773-1858","act_year":1850},"legal_framework":{"primary_laws":["Regulating Act 1773","Bengal Regulations","Anglo-Muhammadan Law","Cornwallis Code 1793"],"court_system":["Supreme Court at Fort William (1774)","District Courts","Company Courts"],"legal...
http://bdlaws.minlaw.gov.bd/act-print-4.html
The Tolls Act, 1851
VIII
1851
19/07/2025
english
false
1,327
16
[ { "section_title": "", "section_content": "1. [Repealed by the Repealing Act, 1870 (Act XIV of 1870).]" }, { "section_title": "", "section_content": "1A.1[This Act extends to the whole of Bangladesh]." }, { "section_title": "", "section_content": "2. The2[* * *] Government may cause ...
[ "1The words “This Act extends to the whole of Bangladesh” were substituted, for section 1A by section 3 and 2nd Schedule of theBangladesh Laws (Revision And Declaration) Act, 1973(Act No. VIII of 1973)", "2The word “Provincial” was omitted by section 3 and 2nd Schedule of theBangladesh Laws (Revision And Declarat...
Company Rule
Governor-General of India
Earl of Dalhousie (James Broun-Ramsay)
Governor-General of India
Company appointment
1848-1856
8
{"period_info":{"period_name":"East India Company Rule","year_range":"1773-1858","act_year":1851},"legal_framework":{"primary_laws":["Regulating Act 1773","Bengal Regulations","Anglo-Muhammadan Law","Cornwallis Code 1793"],"court_system":["Supreme Court at Fort William (1774)","District Courts","Company Courts"],"legal...
http://bdlaws.minlaw.gov.bd/act-print-5.html
The Legal Representative Suits Act, 1855
XII
1855
19/07/2025
english
false
421
2
[ { "section_title": "", "section_content": "1. An action may be maintained by the executors, administrators or representatives of any person deceased for any wrong committed in the time of such person, which has occasioned pecuniary loss to his estate, for which wrong an action might have been maintained by ...
[]
Company Rule
Governor-General of India
Earl of Dalhousie (James Broun-Ramsay)
Governor-General of India
Company appointment
1848-1856
8
{"period_info":{"period_name":"East India Company Rule","year_range":"1773-1858","act_year":1855},"legal_framework":{"primary_laws":["Regulating Act 1773","Bengal Regulations","Anglo-Muhammadan Law","Cornwallis Code 1793"],"court_system":["Supreme Court at Fort William (1774)","District Courts","Company Courts"],"legal...
http://bdlaws.minlaw.gov.bd/act-print-6.html
The Fatal Accidents Act, 1855
XIII
1855
19/07/2025
english
false
585
4
[ { "section_title": "", "section_content": "1. Whenever the death of a person shall be caused by wrongful act, neglect or default, and the act, neglect or default is such as would (if death had not ensued) have entitled the party injured to maintain an action and recover damages in respect thereof, the party...
[]
Company Rule
Governor-General of India
Earl of Dalhousie (James Broun-Ramsay)
Governor-General of India
Company appointment
1848-1856
8
{"period_info":{"period_name":"East India Company Rule","year_range":"1773-1858","act_year":1855},"legal_framework":{"primary_laws":["Regulating Act 1773","Bengal Regulations","Anglo-Muhammadan Law","Cornwallis Code 1793"],"court_system":["Supreme Court at Fort William (1774)","District Courts","Company Courts"],"legal...
http://bdlaws.minlaw.gov.bd/act-print-7.html
The Bills of Lading Act, 1856
IX
1856
19/07/2025
english
false
431
3
[ { "section_title": "", "section_content": "1. Every consignee of goods named in a bill of lading, and every endorsee of a bill of lading to whom the property in the goods therein mentioned shall pass, upon or by reason of such consignment or endorsement shall have transferred to and vested in him all rights...
[]
Company Rule
Governor-General of India
Earl Canning (Charles Canning)
Governor-General of India
Company appointment
1856-1858
2
{"period_info":{"period_name":"East India Company Rule","year_range":"1773-1858","act_year":1856},"legal_framework":{"primary_laws":["Regulating Act 1773","Bengal Regulations","Anglo-Muhammadan Law","Cornwallis Code 1793"],"court_system":["Supreme Court at Fort William (1774)","District Courts","Company Courts"],"legal...
http://bdlaws.minlaw.gov.bd/act-print-8.html
The Hindu Widow's Re-marriage Act, 1856
XV
1856
19/07/2025
english
false
957
10
[ { "section_title": "", "section_content": "1. No marriage contracted between Hindus shall be invalid, and the issue of no such marriage shall be illegitimate, by reason of the woman having been previously married or betrothed to another person who was dead at the time of such marriage, any custom and any in...
[ "1The words “established in the territories in the possession and under the Government of East India Company” were omitted by section 3 and 2nd Schedule of theBangladesh Laws (Revision And Declaration) Act, 1973(Act No. VIII of 1973)" ]
Company Rule
Governor-General of India
Earl Canning (Charles Canning)
Governor-General of India
Company appointment
1856-1858
2
{"period_info":{"period_name":"East India Company Rule","year_range":"1773-1858","act_year":1856},"legal_framework":{"primary_laws":["Regulating Act 1773","Bengal Regulations","Anglo-Muhammadan Law","Cornwallis Code 1793"],"court_system":["Supreme Court at Fort William (1774)","District Courts","Company Courts"],"legal...
http://bdlaws.minlaw.gov.bd/act-print-9.html
The Societies Registration Act, 1860
XXI
1860
19/07/2025
english
false
2,404
24
[ { "section_title": "", "section_content": "1. Any seven or more persons associated for any literary, scientific or charitable purpose, or for any such purpose as is described in section 20 of this Act, may, by subscribing their names to a memorandum of association and filing the same with the Registrar of J...
[ "1Sections 3 and 3A were substituted, for section 3 by section 2 of the Societies Registration (Amendment) Ordinance, 1978 (Ordinance No. XXXIII of 1978)", "2The clause was added by section 3 of the Societies Registration (Amendment) Ordinance, 1978 (Ordinance No. XXXIII of 1978)", "3The words “whenever the Gov...
British Colonial Rule
Lieutenant Governor of Bengal
John Peter Grant
Lieutenant Governor of Bengal Presidency
British Crown appointment
1858-1862
4
{"period_info":{"period_name":"British Crown Rule","year_range":"1858-1947","act_year":1860},"legal_framework":{"primary_laws":["Government of India Act 1858","Indian Penal Code 1860","Code of Civil Procedure 1908","Evidence Act 1872"],"court_system":["High Courts (1861)","District Courts","Magistrate Courts"],"legal_b...
http://bdlaws.minlaw.gov.bd/act-print-10.html
End of preview. Expand in Data Studio

Bangladesh Legal Acts Dataset

A comprehensive database of Bangladesh's legal framework, containing 1484+ acts scraped and processed from the official Bangladesh Laws portal, enhanced with historical government context, legal system context, and comprehensive metadata.

Paper: BLAD: A Historically Contextualized, Multilingual Dataset of Bangladeshi Legal Acts (1799 to 2025) · Kaggle: sakhadib/bangladesh-legal-acts-dataset · Code: GitHub · DOI: 10.34740/KAGGLE/DSV/12511542

Why this dataset exists

Legal NLP has rich resources for common-law, English-language jurisdictions and almost none for low-resource, civil-law jurisdictions in South Asia. This corpus makes more than two centuries of Bangladeshi statute law machine-readable, with each act linked to the government, head of state and legal system in force when it was enacted. That makes it usable for temporal legal reasoning, not just retrieval.

Acts 1,484
Time span 1799–2025
Sections 35,633
Footnotes 14,523
Tokens about 2.5M
Governments / legal systems 50 / 12
Languages English, Bengali, mixed

Quick start

from datasets import load_dataset

ds = load_dataset("sakhadib/Bangladesh-Legal-Acts-Dataset", split="train")
act = ds[0]
print(act["act_title"], act["act_year"], act["language"], act["is_repealed"])
print(act["head_govt_name"], "·", act["govt_system"])
print(act["sections"][0]["section_title"])

The loader reads bangladesh_legal_acts.jsonl, a flat one-act-per-line version of the corpus. The original nested file, Contextualized_Bangladesh_Legal_Acts.json, and the per-act files in acts/ are unchanged.

Column Type Description
act_title, act_no, act_year string Title, act number and year of enactment
publication_date string Date as published on the official portal
language string english, bengali, mixed or unknown
is_repealed bool Whether the act has been repealed
token_count, num_sections int Size of the act
sections list of {section_title, section_content} Full text, section by section
footnotes list of string Amendment and extension notes
govt_system, position_head_govt, head_govt_name, head_govt_designation, how_got_power, period_years, years_in_power string / int The government in power at enactment
legal_system_context string (JSON) Legal framework, government, policing and land-relations context of the era
source_url string Source page on bdlaws.minlaw.gov.bd

In this release: 582 English, 698 Bengali, 1 mixed and 203 acts with undetected language; 203 acts are marked repealed.

Dataset Overview

  • Total Acts: 1,484
  • Total Sections: 35,633
  • Total Footnotes: 14,523
  • Languages: English, Bengali, Mixed
  • Format: JSON with structured metadata
  • Historical Context: Government periods from 1799-2025
  • Legal System Context: Comprehensive legal framework information
  • Enhanced Features: Token counts, year standardization, processing metadata
  • License: CC-BY 4.0

Citation

If you use this dataset, please cite the paper:

@misc{sakhawat2026blad,
  title         = {BLAD: A Historically Contextualized, Multilingual Dataset of Bangladeshi Legal Acts (1799 to 2025)},
  author        = {Sakhawat, Adib},
  year          = {2026},
  eprint        = {2607.17111},
  archivePrefix = {arXiv},
  url           = {https://arxiv.org/abs/2607.17111}
}

The dataset release itself can be cited as:

If you use this dataset in your research or project, please cite it as:

@misc{adib_sakhawat_2025,
  title     = {Bangladesh Legal Acts Dataset},
  url       = {https://www.kaggle.com/dsv/12511542},
  DOI       = {10.34740/KAGGLE/DSV/12511542},
  publisher = {Kaggle},
  author    = {Adib Sakhawat},
  year      = {2025}
}

Data Processing Pipeline

The dataset has been enhanced through multiple processing stages:

  1. Initial Scraping: Raw legal acts data collection
  2. Content Cleaning: Text processing and structuring
  3. Detailed Fetching: Section-by-section content extraction
  4. Data Combination: Merging structured data
  5. Enhancement: Token counting and language detection
  6. Government Context Integration: Historical government information
  7. Legal System Context Addition: Legal framework contextualization
  8. Year Translation: Bengali to English numeral conversion
  9. Error Recovery: Missing context restoration
  10. Token Count Correction: Accurate tokenization across all fields
  11. Final Compilation: Comprehensive dataset creation

Individual Act Structure (Enhanced)

{
  "act_title": "The Penal Code, 1860",
  "act_no": "XLV",
  "act_year": "1860",
  "publication_date": "6th October, 1860",
  "language": "english",
  "token_count": 15420,
  "is_repealed": false,
  "sections": [
    {
      "section_title": "Chapter I - Introduction",
      "section_content": "This Act may be called the Penal Code..."
    }
  ],
  "footnotes": [
    {
      "footnote_text": "Extended to Bangladesh by..."
    }
  ],
  "csv_metadata": {
    "act_title_from_csv": "The Penal Code, 1860",
    "is_repealed": false
  },
  "government_context": {
    "government_name": "British Colonial Government",
    "govt_system": "Company Rule",
    "position_head_govt": "Governor-General of India",
    "head_govt_name": "Lord Canning (Charles Canning)",
    "head_govt_designation": "Governor-General of India",
    "how_got_power": "Company appointment",
    "period_years": "1856-1862",
    "years_in_power": 6,
    "context_added_at": "2025-07-19T..."
  },
  "legal_system_context": {
    "legal_framework": "British Colonial Legal System",
    "government_system": "Colonial Administration",
    "policing_system": "Imperial Police System",
    "land_relations": "Colonial Land Revenue System",
    "period": "1858-1947",
    "description": "British Crown rule with colonial administrative framework",
    "context_added_at": "2025-07-19T..."
  },
  "processing_info": {
    "government_context_source": "govt.json lookup",
    "legal_context_source": "bangladesh_legal_systems.json",
    "year_translation": "Original year retained",
    "token_count_method": "Comprehensive field tokenization",
    "last_updated": "2025-07-19T..."
  },
  "source_file": "act-print-11.json",
  "source_url": "http://bdlaws.minlaw.gov.bd/act-print-11.html",
  "fetch_timestamp": "2025-07-19 02:45:32"
}

🔍 Data Features

Enhanced Processing

  • Missing Data Recovery: Automatically fills gaps using CSV metadata
  • Token Counting: Word-level tokenization for all text content including context fields
  • Language Detection: Automatic detection of English/Bengali/Mixed content
  • Historical Government Context: Matches each act with the government system and leadership at the time of enactment
  • Legal System Context: Comprehensive legal framework information for each historical period
  • Year Standardization: Bengali to English numeral translation
  • Error Recovery: Automated recovery for files with missing contexts
  • Metadata Preservation: Maintains source URLs and timestamps

Quality Assurance

  • Error Handling: Robust error logging and recovery mechanisms
  • Data Validation: Automatic validation of combined datasets
  • Progress Tracking: Real-time processing progress with tqdm
  • Statistics: Comprehensive processing statistics and distribution analysis
  • Batch Processing: Memory-efficient chunked processing
  • Comprehensive Logging: Detailed logs for all processing stages

Government Context Features

  • Historical Periods: Covers government systems from 1799-2025
  • Leadership Information: Includes head of government names and designations
  • Power Transitions: Documents how each government came to power
  • System Classification: Categorizes different government types (Company Rule, Colonial, Democratic, Military, etc.)
  • Temporal Mapping: Precise year-based matching of acts to government periods

Legal System Context Features

  • Legal Framework Classification: Comprehensive categorization of legal systems
  • Government System Integration: Links legal framework to government structure
  • Policing System Context: Historical policing and law enforcement information
  • Land Relations Framework: Land ownership and revenue system context
  • Temporal Coverage: Complete coverage across all historical periods
  • Contextual Descriptions: Detailed explanations of each legal system period

📈 Dataset Statistics

Metric Value
Total Legal Documents 1,484
Date Range 1799 - 2025
Languages English, Bengali, Mixed
Total Sections 35,633
Total Footnotes 14,523
Government Periods Covered 50+ historical periods
Legal System Periods 12+ distinct legal frameworks
Government Systems Company Rule, Colonial, Military, Democratic, etc.
Average Tokens per Act ~2,884
Total Dataset Tokens 2,500,000+
Processing Scripts 10+ specialized processing tools
Processing Time ~30 minutes (complete pipeline)

🛠️ Technical Details

Scraping Process

  • Respectful scraping: 300ms delays between requests
  • Error resilience: Continues processing despite individual failures
  • Memory optimization: Batch processing for large datasets
  • Rate limiting: Prevents server overload

Data Processing

  • Batch optimization: Processes 50-100 items per batch
  • Memory efficiency: Streaming JSON writing for large files
  • Unicode support: Full Bengali/English text support
  • Incremental processing: Skip already processed files
  • Chunked processing: Optimized memory usage for large datasets
  • Government context fusion: Efficient lookup-based government matching
  • Legal context integration: Temporal period matching algorithms
  • Token counting: Regex-based comprehensive tokenization
  • Error recovery: Automated detection and correction of processing errors

Processing Pipeline Features

  • Modular Design: Each processing stage is independent and reusable
  • Progress Tracking: Real-time progress bars and statistics
  • Comprehensive Logging: File and console logging for all operations
  • Memory Management: Garbage collection and chunked processing
  • Error Resilience: Continues processing despite individual file failures
  • Statistics Generation: Detailed processing and content statistics

Historical Government Context

The dataset includes comprehensive historical government context for each legal act, covering:

Government Systems Covered

  • Company Rule (1799-1858): East India Company administration
  • British Colonial Rule (1858-1947): Direct British Crown rule
  • Pakistan Period (1947-1971): Dominion and Republic of Pakistan
  • Bangladesh Independence (1971-present): Various democratic and military governments

Context Information

  • Government system type and duration
  • Head of government name and official designation
  • Method of acquiring power (election, appointment, coup, etc.)
  • Exact period years for historical accuracy

This historical context enables researchers to:

  • Analyze legal evolution across different political systems
  • Study the impact of government changes on legislation
  • Understand the political circumstances surrounding specific laws
  • Conduct temporal analysis of legal frameworks

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Legal Notice

This dataset contains legal documents from the Bangladesh government. While the data is publicly available, please:

  • Verify accuracy for legal purposes
  • Check for updates on the official portal
  • Respect the original source attribution

License

This work is licensed under CC-BY 4.0.

You are free to:

  • Share and redistribute
  • Adapt and transform
  • Use commercially

With attribution to this repository.

Related Links

Contact

For questions about this dataset, please open an issue in this repository.


Disclaimer: This is an unofficial compilation. For legal purposes, always refer to the official Bangladesh Laws portal.


license: cc-by-4.0

Downloads last month
1,131

Paper for sakhadib/Bangladesh-Legal-Acts-Dataset