A collection of parliamentary debate datasets for Latin America, Portugal, and Spain
This paper introduces ParlaIbero, a comprehensive collection of sixteen structured datasets containing over 1.8 billion words of parliamentary speeches from Latin America, Portugal, and Spain spanning 1976 to 2026, which transforms unprocessed public records into a resource suitable for text-as-data research on legislative behavior and political representation.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Political history is often written in the quiet moments between the shouting matches, in the thousands of hours of routine debate where representatives discuss laws, budgets, and the future of their nations. For decades, scholars have wanted to study these conversations to understand how politicians think, how they argue, and how they represent the people who elected them. The challenge has always been that while these debates are public records, they are often locked away in formats that are impossible for computers to read. They exist as scanned images of paper pages or complex digital files that look like books but contain no searchable text. To study them, a researcher would traditionally have to read every single page by hand, a task so vast it limits the scope of what can be learned.
A team of researchers has now opened the door to a massive archive of these conversations. They have created a new collection of data that turns millions of pages of parliamentary debates from Latin America, Portugal, and Spain into a format that computers can analyze. This work, called ParlaIbero, gathers speeches from the lower chambers of sixteen different countries, covering a period from 1976 to 2026. The result is a library of over ten million individual speaking turns, containing nearly two billion words. By transforming these documents into structured data, the researchers have made it possible to ask questions about political language and behavior across time and borders that were previously impossible to answer.
The project began with a simple observation: most Ibero-American parliaments publish their proceedings, but the files are often just pictures of text or messy digital documents. Finding the original records is usually possible, but turning them into a usable dataset is a monumental task. The researchers had to figure out exactly where one speech ends and another begins, separate the actual words spoken from administrative notes like vote counts or summaries, and match the names in the records to a list of real elected officials. This process required building a system that could handle the unique quirks of each country's language and parliamentary rules.
To achieve this, the team built a sophisticated pipeline that acts like a highly skilled translator and organizer. They started by converting scanned images into text using advanced optical character recognition, a technology that reads letters from pictures. In some cases, the original scans were so poor that they had to reprocess the text from scratch. Once the text was readable, the system had to identify who was speaking. This was the most difficult step, as the way a speaker is introduced varies wildly from country to country and even changes over time within the same country. Sometimes a name is followed by a colon, other times it is part of a full sentence. The researchers used a combination of computer programs and human oversight to teach the system how to spot these patterns and tag every turn of speech with the correct speaker's name.
Once the speeches were identified, the next challenge was linking them to the people who gave them. The team built a separate register for each country, a detailed list of every elected official who served during the period covered. This list included their party, the district they represented, their sex, and the dates of their term. The system then matched the names in the debate records to this list. When a match was found, the speech was connected to the speaker's full profile. If a speaker was not an elected official, such as a minister or a guest, the system flagged them separately. This allowed researchers to distinguish between the voices of elected representatives and other participants in the room.
The final dataset is a massive collection of structured information. It contains over ten million rows of data, with each row representing a single moment in a debate. The collection includes 1.8 billion words in Spanish and Portuguese, drawn from more than 52,000 sessions. The data is not just a wall of text; it is enriched with metadata that tells the story of who said what, when, and where. For example, the system can tell you that a specific speech was given by a female representative from a particular district during a specific legislative session. This level of detail allows for complex comparisons, such as tracking how often women speak compared to men, or how the topics of debate have shifted over fifty years.
The researchers were careful to ensure the quality of their work. They tested the system by sampling thousands of rows and checking them against the original records. They found that the system correctly identified the speaker in nearly all cases, with a very high rate of accuracy. They also paid special attention to the sex of the speakers, a variable that is not always recorded in official documents. By using a combination of official records, names, and titles, they were able to determine the sex of the speaker with high confidence, though they noted that some errors remain, particularly for women whose names or titles might be ambiguous.
This collection is designed to be a tool for a wide range of research. It can be used to study how political agendas are set, how polarization evolves, or how different groups of politicians use language. The data is available to anyone, and the researchers have even created tools to help people explore it without needing advanced computer skills. One tool allows users to browse the data in a web browser, while another connects the data to artificial intelligence assistants that can answer questions about the content.
The work represents a significant step forward in the study of political language. Before this collection, comparing debates across different countries and decades was a laborious task that few could undertake. Now, with a standardized dataset covering sixteen nations, researchers can look for patterns that span generations and borders. The data reveals the raw material of democracy: the thousands of hours of speech where representatives argue, persuade, and record their views for history. By making this material accessible, the researchers have provided a new way to understand the voices that shape our political world.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.