CoolFace
Datasetpublic

Arailym-tleubayeva/KazakhLawCorpus

Current Release Current version contains three datasets. data/ ├── laws_metadata.csv ├── law_history.csv └── law_references.csv Dataset Description 1. laws_metadata.csv Contains metadata describing legal acts. Current size: 223,245 legal acts Main fields include: Column Description source_id Internal database identifier law_id Stable legal act identifier title Original title title_kk Kazakh title title_ru Russian title… See the full description on the dataset page: https://huggingface.co/datasets/Arailym-tleubayeva/KazakhLawCorpus.

sourceHugging Faceapache-2.0updated 16d agoView on Hugging Face
1likes89downloads
Dataset Card

KazakhLawCorpus

Overview

KazakhLawCorpus is an open research dataset containing structured legislative information from the Republic of Kazakhstan.

The corpus is designed for:

  • —Legal Retrieval-Augmented Generation (Legal RAG)
  • —Information Retrieval
  • —Semantic Search
  • —Question Answering
  • —Legal Knowledge Graph construction
  • —Citation Graph analysis
  • —Temporal Legal Analysis
  • —Legal NLP
  • —Large Language Models (LLMs)

The dataset currently contains metadata, document history, and legal citation relationships extracted from a PostgreSQL database.


Current Release

Current version contains three datasets.

data/
├── laws_metadata.csv
├── law_history.csv
└── law_references.csv

Dataset Description

1. laws_metadata.csv

Contains metadata describing legal acts.

Current size:

  • —223,245 legal acts

Main fields include:

ColumnDescription
source_idInternal database identifier
law_idStable legal act identifier
titleOriginal title
title_kkKazakh title
title_ruRussian title
descriptionDescription
date_adoptedAdoption date
date_modifiedLast modification date
date_publishedPublication date
act_formType of legal act
legal_forceLegal force
adopting_bodyIssuing authority
regulatory_bodyRegulatory authority
developer_bodyDrafting authority
legalrelationareaLegal domain
database_sectionAdilet database section
is_archiveArchive status
is_repealedRepealed status
adilet_urlOfficial Adilet URL
ekb_urlEKB URL

2. law_history.csv

Contains document history describing relationships between document revisions.

Current size:

  • —169,018 history records

Main fields:

ColumnDescription
idHistory identifier
law_idCurrent document
previouslawidPrevious revision
date_changeChange date
statusRevision status
titleRevision title
formandbodyIssuing authority at revision
additional_infoAdditional notes
available_languagesAvailable languages

This dataset enables reconstruction of legislative evolution over time.


3. law_references.csv

Contains citation relationships between legal documents.

Main fields:

ColumnDescription
idReference identifier
fromlawidSource legal act
tolawidTarget legal act
fromversiondateSource version date
toversiondateTarget version date
block_idReference block identifier

This dataset can be used to build a Legal Citation Graph.


Intended Applications

The corpus is intended for research in:

  • —Legal RAG
  • —Legal Search Engines
  • —Hybrid Retrieval
  • —BM25 Retrieval
  • —Dense Retrieval
  • —Graph Retrieval
  • —Legal Citation Analysis
  • —Temporal Legal Analysis
  • —Knowledge Graph Construction
  • —Legal Question Answering
  • —LLM Fine-tuning
  • —Benchmark Development

Future Releases

Future versions of KazakhLawCorpus will include:

  • —law_versions
  • —law_articles
  • —law_sections
  • —law_chunks
  • —law_embeddings
  • —legal citation graph
  • —temporal graph
  • —benchmark datasets for Legal RAG

Source

The dataset is derived from publicly available legislation of the Republic of Kazakhstan.

The exported database used for this research was provided by:

NUBA Solutions LLP (ТОО "NUBA Solutions")

The original legal documents remain available through the official Adilet legal information system.


Acknowledgements

The authors thank NUBA Solutions LLP for providing the exported database used to prepare this research corpus.


License

This repository is distributed under the Apache 2.0 License.

Users are responsible for ensuring that any downstream use of the original legal documents complies with the applicable terms governing the official legal sources.


Citation

If you use this dataset in academic research, please cite:

Tleubayeva, A., Mansurova, A., Shomanov, A., Makhambetova, Z., & Boluk, P. S. (2026). KazakhLawCorpus: A Large-Scale Metadata Corpus for Kazakh Legislation. Data, 11(9), 217. https://doi.org/10.3390/data11090217


Contact

Arailym Tleubayeva

Astana IT University

Hugging Face: https://huggingface.co/Arailym-tleubayeva