Datasets:

Modalities:
Text
Formats:
parquet
Languages:
Russian
ArXiv:
License:
Dataset Viewer
Auto-converted to Parquet Duplicate
The dataset viewer is not available for this split.
Parquet error: Scan size limit exceeded: attempted to read 593482341 bytes, limit is 300000000 bytes Make sure that 1. the Parquet files contain a page index to enable random access without loading entire row groups2. otherwise use smaller row-group sizes when serializing the Parquet files
Error code:   TooBigContentError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

The Russian Legislative Corpus, 1991–2026

Russian primary and secondary legislation corpus covering laws of Russian Federation, decrees by the President of RF, regulations by the government published as of July, 2026. The corpus collects all 308,056 texts (198,777,737 tokens) of non-secret federal regulations and acts, along with their metadata. The corpus has two versions: the original text with minimal preprocessing and a version prepared for linguistic analysis with morphosyntactic markup.

For lemmatization, POS tagging, and dependency parsing we use the Ru-syntax tool developed by the Computational Linguistics team at the Higher School of Economics (Russia). This tool gathers the results from the morphological analyzer MyStem, part-of-speech tagging (Schmid, 2013) TreeTagger, and dependency grammar analyzer MaltParser. Finally, the result is stored in the CONLL-U format.

arXivLicense: CC BY-NC-SA 4.0Python

Structure

The corpus is stored in XML files each for one document. Every field appears if only the document has that kind of information. Fields descriptions are in the example below.

<act> <!-- Legal act as the type of a document -->
  <meta> <!-- major sections are metadata and text -->
    <identification> <!-- see the Limitations on information about legal act identification in Russia -->
      <pravogovruNd val="000000000" /> <!-- document internal number at the IPS Zakonodatelstvo 
      website at the moment of download. It may be subject to change -->
      <issuedByIPS val="Entity that issued the act according to the IPS Zakonodatelstvo" />
      <docdateIPS val="00.00.0000" /> <!-- document day of signature according to the IPS 
      Zakonodatelstvo, date format is dd.mm.yyyy-->
      <docNumberIPS val="000" /> <!-- document number at signature according to the IPS Zakonodatelstvo -->
      <headingIPS>title of the document in the IPS Zakonodatelstvo.</headingIPS> 
      <doc_typeIPS val="Document type as was in the source"/>
      <doc_author_normal_formIPS val="State organ that adopted the act, in normal language form"/>
      <signedIPS val="______"/> <!-- Person name who signed this legal act as provided in the source -->
      <statusIPS val="Утратил силу"/> <!-- In force, Not in force, In force with amendments: Acting status at the date of scrapping and as it was provided by the source -->
      <actual_datetimeIPS val="1710792705.7460072"/> <!-- Date and time when this data was scrapped from the original website -->
      <actual_datetime_humanIPS val="Mon Mar 18 23:11:45 2024"/> <!-- Date and time when this data was scrapped from the original website, in human readable format -->
      <is_widely_used val="1"/></identification> <!-- 1 if yes, 0 if no: is the document normative and in wide use (see article preprint for the details) -->
    </identification>
    <references>
      <classifierByIPS val="000.000.000.000.000" /> <!-- classification code according to the IPS Zakonodatelstvo -->
    </references>
    <keywords>
      <keywordByIPS val="KEYWORD" /> 
    </keywords>
  </meta>
  <body>
    <textIPS><-- Text parsed from the IPS Zakonodatelstvo --> 
    <!-- It can include hyperlinks to other acts, mostly amendments,
    like this: --> text <ref>linked text</ref> text 
    </textIPS>
    <taggedTextIPS> <-- CONLL_U morphosyntactic tagged text, cleaned -->
    </taggedTextIPS> 
  </body>
</act>
</act>

Metadata

Node Attribute Comment N Unique, n Missing, %
body textIPS the text of a legal act 309180 0.47
taggedtextips Tagged text, CONLL-U 307986 0.86
meta pravogovruNd Internal ID, pravo.gov.ru 310670 310670 0
issuedByIPS Full name of a legal act (type + state body) 310670 2140 0
doc_typeIPS Type of legal act 310670 67 0
doc_author_normal_formIPS Unified state body name 310670 296 0
docdateIPS Date of official publication 310670 0
docNumberIPS Document number at signature 310670 0
headingIPS Title 310670 - 0
signedIPS Official who signed an act 274873 1361 11.5
statusIPS Status as of the dump date, may not be actual by this corpus release! 31670 4 0
actual_datetimeIPS Dump date 310670 - 0
actual_datetime_humanIPS Dump date 310670 - 0
is_widely_used Flag for core acts 310670 2 0
keywords keywordsByIPS key words 248807 - 20.2
reference classifierByIPS official classifier 247824 - 19.9

Collection

We queried the online Legislation of Russia service (pravo.gov.ru) base called "IPS Zakonodatelstvo Rossii" maintained by the Special Communications Service for the texts legislation and their metadata. Our web scraping took place in the period spanning 2017—2026 with the last data collection taking part in August, 2026.

Usage

This dataset could be loaded in Python with HF's Datasets library:

from datasets import load_dataset
dataset = load_dataset(<path-to-parquet-files>)
dataset['train'][0]['textIPS']. # first chunk of main texts variable

For more information please see Datasets' documentation.

The dataset is published also at GitHub

Citation

If you use this corpus in your scientific work, please refer to: Saveliev, Denis, and Ruslan Kuchakov. "The Russian Legislative Corpus." arXiv preprint arXiv:2406.04855 (2024).

@ruslaw{saveliev2024russian,
  title={The {R}ussian {L}egislative {C}orpus},
  author={{S}aveliev, {D}enis and {K}uchakov, {R}uslan},
  journal={arXiv preprint arXiv:2406.04855},
  year={2024}
}
Downloads last month
1,202

Models trained or fine-tuned on irlspbru/RusLawOD

Space using irlspbru/RusLawOD 1

Paper for irlspbru/RusLawOD