Unified, Labeled, and Semi-Structured Database of Pre-Processed Mexican Laws

Bella Martinez-Seis, Obdulia Pichardo-Lagunas, Harlan Koff, Miguel Equihua, Octavio Perez-Maqueo, Arturo Hernández-Huerta

Research output: Contribution to journalArticlepeer-review

Abstract

This paper presents a corpus of pre-processed Mexican laws for computational tasks. The main contributions are the proposed JSON structure and the methodology used to achieve the semi-structured corpus with the selected algorithms. Law PDF documents were transformed into plain text, unified by a deconstruction of law–document structure, and labeled with natural language processing techniques considering part of speech (PoS); a process of entity extraction was also performed. The corpus includes the Mexican constitution and the Mexican laws that were collected from the official site in PDF format repealed before 14 October 2021. The collection has 305 documents, including: the Mexican constitution, 289 laws, 8 federal codes, 3 regulations, 2 statutes, 1 decree, and 1 ordinance. The semi-structured database includes the transformation of the set of laws from PDF format to a digital representation in order to facilitate its computational analysis. The documents were migrated to JSON type files to represent internal hierarchical relations. In addition, basic natural language processing techniques were implemented on laws for the identification of part of speech and named entities. The presented data set is mainly useful for text analysis and data science. It could be used for various legislative analysis tasks including: comprehension, interpretation, translation, classification, accessibility, coherence, and searches. Finally, we present some statistic of the identified entities and an example of the usefulness of the corpus for environmental laws.

Original languageEnglish
Article number91
JournalData
Volume7
Issue number7
DOIs
StatePublished - Jul 2022

Keywords

  • Mexican legislation
  • laws
  • legislative documents
  • natural language processing

Fingerprint

Dive into the research topics of 'Unified, Labeled, and Semi-Structured Database of Pre-Processed Mexican Laws'. Together they form a unique fingerprint.

Cite this