parlaibero-mcp

v0.6.2
parlaibero-mcp Checked 2 hours ago Published 4 days ago

MCP server for ParlaIbero: plenary speeches from 16 Ibero-American parliaments, for AI agents

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_countries

List the 16 ParlaIbero datasets: DOI, published version, size, and whether each one is already downloaded locally (with rows, sessions and date range).

get_documentation

Return a documentation file deposited with a country's dataset. Works before the data are downloaded (small files are fetched from Dataverse).

ParameterTypeDescription
country *stringISO2 code (ES, MX, BR…) or country name
documentstringreadme (overview, sources, coverage) · data_dictionary (columns) · known_limitations (caveats) · process_report (how it was built) · corpus_info (machine-readable facts, linkage rates) · match_me…
languagestringLanguage of the markdown documents

how_to_cite

Formatted citation (latest published version) and DOI of a country's dataset.

ParameterTypeDescription
country *stringISO2 code (ES, MX, BR…) or country name

describe_data

Schema of the local DuckDB tables, the countries loaded, and example queries.

download_country

Download a country's dataset from Harvard Dataverse (MD5-verified) and load it into the local database. Skips files already current. Large countries (BR, MX, ES, PT, EC) are 1-1.5 GB: if the client times out, run `parlaibero-mcp download XX` in a terminal instead.

ParameterTypeDescription
country *stringISO2 code (ES, MX, BR…) or country name
forcebooleanRe-download even if the local copy is current

import_from_folder

Load ParlaIbero CSV files that were downloaded by hand from Dataverse.

ParameterTypeDescription
folder *stringFolder with {ISO}_interventions.csv (and optionally {ISO}_deputies.csv), or with one subfolder per country

query_sql

Run a read-only SQL query (DuckDB dialect). The connection cannot write, read other files or reach the network.

ParameterTypeDescription
sql *stringDuckDB SQL over the tables in describe_data
max_cell_charsintegerTruncate long text cells
max_rowsinteger
timeout_sinteger

search_text

Find interventions containing a word, phrase or regex, newest first, with a snippet around the first match and the total number of matching rows. Plain searches ignore case and accents ('nacion' finds 'Nación').

ParameterTypeDescription
pattern *stringWord or phrase (or RE2 regular expression if regex=true)
countriesISO2 codes to restrict to; omit for every downloaded country
date_fromYYYY or YYYY-MM-DD
date_toYYYY or YYYY-MM-DD (inclusive)
id_dep
libraryName of a library (see library_describe): only its interventions; countries default to the library's
limitinteger
offsetinteger
partyParty label as an ILIKE pattern, e.g. 'PSOE' or '%Frente%'
regexboolean
sexSpeaker's sex (linked deputies only)
speech_onlybooleanOnly rows with dm_speech = 1 (recommended)
whole_wordbooleanPlain searches: match whole words only

get_intervention

Full text and metadata of one intervention, optionally with surrounding turns.

ParameterTypeDescription
id_int *stringIntervention id, e.g. ES0140012300045
contextintegerAlso return N turns before and after

get_session

Metadata and the ordered list of turns of a session (speaker, party, words, first words of each turn, or the full text).

ParameterTypeDescription
id_session *stringSession id, e.g. ES0140012
include_textbooleanFull text of every turn (can be long)
max_rowsinteger

term_frequency

How often a term is used, grouped by year, decade, country, legislature, party, sex, speaker, session type or session: occurrences, interventions using it, total words and occurrences per million words. Same counting as ngram_viewer. by='session' lists the sessions where the term concentrates — a way to find the date of an event in each chamber.

ParameterTypeDescription
pattern *stringWord or phrase; '+' joins variants, '*' ends a prefix. Whole words, case- and accent-insensitive (no need to add accent variants); text matched by several variants counts once
bystringGrouping dimension
countriesISO2 codes to restrict to; omit for every downloaded country
date_fromYYYY or YYYY-MM-DD
date_toYYYY or YYYY-MM-DD (inclusive)
exclude_chairbooleanLeave out the presiding officer's turns (procedural speech: giving the floor, calling votes)
libraryName of a library (see library_describe): only its interventions; countries default to the library's
max_rowsinteger
max_turn_wordsLeave out turns longer than this many words — mostly documents read into the record; 10000 is a sensible check
partyParty label as an ILIKE pattern, e.g. 'PSOE' or '%Frente%'
sexSpeaker's sex (linked deputies only)
speech_onlybooleanOnly rows with dm_speech = 1 (recommended)

ngram_viewer

Google Books Ngram-style viewer: yearly frequency of one or more words or phrases, with the base behind every point (words, sessions) and low-base years flagged. Optionally writes the chart to an SVG or HTML file.

ParameterTypeDescription
terms *stringComma-separated series; '+' joins variants into one series ('corrupción+corrupção'); '*' ends a prefix ('democrati*'). Whole words, case- and accent-insensitive: do not add accent or case variants…
chart_pathWrite a chart: '.svg' (static figure for papers and slides) or '.html' (page with hover, dark mode and data table). At most 8 series.
countriesISO2 codes to restrict to; omit for every downloaded country
date_fromYYYY or YYYY-MM-DD
date_toYYYY or YYYY-MM-DD (inclusive)
exclude_chairbooleanLeave out the presiding officer's turns (procedural speech: giving the floor, calling votes)
languagestringLanguage of the chart labels
libraryName of a library (see library_describe): only its interventions; countries default to the library's
max_turn_wordsLeave out turns longer than this many words — mostly documents read into the record; 10000 is a sensible check
measurestringper_million: occurrences per million words (comparable across years); count: raw occurrences; interventions_pct: % of interventions using the term
overwriteboolean
partyParty label as an ILIKE pattern, e.g. 'PSOE' or '%Frente%'
sexSpeaker's sex (linked deputies only)
smoothingintegerCentred moving average over ±N years (Google Ngram uses 3)
speech_onlybooleanOnly rows with dm_speech = 1 (recommended)
split_by_countrybooleanOne line per term × country instead of pooling the countries
title

term_counter

Counter for one or more terms: occurrences, interventions, sessions, speakers, breakdown by sex and party (with per-million rates), and the FIRST and LAST use in each country, with the intervention id — when a term entered each chamber's vocabulary.

ParameterTypeDescription
terms *stringComma-separated series; '+' joins variants into one series ('corrupción+corrupção'); '*' ends a prefix ('democrati*'). Whole words, case- and accent-insensitive: do not add accent or case variants…
countriesISO2 codes to restrict to; omit for every downloaded country
date_fromYYYY or YYYY-MM-DD
date_toYYYY or YYYY-MM-DD (inclusive)
exclude_chairbooleanLeave out the presiding officer's turns (procedural speech: giving the floor, calling votes)
libraryName of a library (see library_describe): only its interventions; countries default to the library's
max_turn_wordsLeave out turns longer than this many words — mostly documents read into the record; 10000 is a sensible check
partyParty label as an ILIKE pattern, e.g. 'PSOE' or '%Frente%'
sexSpeaker's sex (linked deputies only)
speech_onlybooleanOnly rows with dm_speech = 1 (recommended)

share_of_voice

How much each group speaks compared with its weight in the chamber: share of words (or turns) and of speakers among linked deputies, against the group's share of members on the register in that period, and their ratio (>1 = speaks more than its weight).

ParameterTypeDescription
bystringGroup to compare
countriesISO2 codes to restrict to; omit for every downloaded country
date_fromYYYY or YYYY-MM-DD
date_toYYYY or YYYY-MM-DD (inclusive)
exclude_chairbooleanLeave out the presiding officer's turns (procedural speech: giving the floor, calling votes)
libraryName of a library (see library_describe): only its interventions; countries default to the library's
max_turn_wordsLeave out turns longer than this many words — mostly documents read into the record; 10000 is a sensible check
perstringPeriod
unitstringMeasure of voice

distinctive_words

Words that most distinguish group A from group B (weighted log-odds with an informative Dirichlet prior, Monroe et al. 2008): e.g. women vs men deputies, one party vs another, one period vs another, a library vs the rest of its chambers. Compare within one language.

ParameterTypeDescription
a *stringGroup A: 'F', a party label, a period '2000-2010', an ISO2 code, an id_dep or a library name
field *stringWhat separates the two groups
bGroup B, same kind as A; omit for 'everyone else'
countriesISO2 codes to restrict to; omit for every downloaded country
date_fromYYYY or YYYY-MM-DD
date_toYYYY or YYYY-MM-DD (inclusive)
exclude_chairbooleanLeave out the presiding officer's turns (procedural speech: giving the floor, calling votes)
libraryName of a library (see library_describe): only its interventions; countries default to the library's
max_turn_wordsLeave out turns longer than this many words — mostly documents read into the record; 10000 is a sensible check
min_countinteger
topinteger

kwic

Keyword in context: concordance lines (left context · match · right context) from a sample of the interventions that use the term, for close reading.

ParameterTypeDescription
pattern *stringWord or phrase ('*' ends a prefix), or RE2 regex if regex=true
countriesISO2 codes to restrict to; omit for every downloaded country
date_fromYYYY or YYYY-MM-DD
date_toYYYY or YYYY-MM-DD (inclusive)
libraryName of a library (see library_describe): only its interventions; countries default to the library's
nintegerInterventions to sample
orderstringrandom gives a representative sample (reproducible with seed)
partyParty label as an ILIKE pattern, e.g. 'PSOE' or '%Frente%'
regexboolean
seedinteger
sexSpeaker's sex (linked deputies only)
whole_wordboolean
widthintegerCharacters of context on each side

collocations

Words that keep company with a term: over-represented within ±window tokens of it (Dunning log-likelihood). Run with different dates to see how a term's associations shift.

ParameterTypeDescription
pattern *stringWord or phrase ('*' ends a prefix)
countriesISO2 codes to restrict to; omit for every downloaded country
date_fromYYYY or YYYY-MM-DD
date_toYYYY or YYYY-MM-DD (inclusive)
exclude_chairbooleanLeave out the presiding officer's turns (procedural speech: giving the floor, calling votes)
exclude_stopwordsboolean
libraryName of a library (see library_describe): only its interventions; countries default to the library's
max_turn_wordsLeave out turns longer than this many words — mostly documents read into the record; 10000 is a sensible check
min_countinteger
partyParty label as an ILIKE pattern, e.g. 'PSOE' or '%Frente%'
sampleintegerInterventions sampled
sexSpeaker's sex (linked deputies only)
topinteger
windowintegerTokens on each side

coverage

Data-quality check before interpreting a trend: sessions, rows, speech words, linked and sex-known shares per period, missing years and low-base periods, plus each corpus's linkage figures. Call it before comparing countries or reading peaks.

ParameterTypeDescription
bystringPeriod
countriesISO2 codes to restrict to; omit for every downloaded country
date_fromYYYY or YYYY-MM-DD
date_toYYYY or YYYY-MM-DD (inclusive)
libraryName of a library (see library_describe): only its interventions; countries default to the library's

export_result

Save the full result of a query to CSV or Parquet, to continue in R, Python or Stata. Only the destination folder can be written (or read); nothing else on disk is reachable.

ParameterTypeDescription
path *stringOutput file, .csv or .parquet (absolute, or relative to the client's working directory)
sql *stringOne SELECT over the tables in describe_data
formatDefaults to the extension
overwriteboolean

query_log

The analyses run so far (tool, parameters, dataset versions), for reproducibility. Can write a methods appendix ready to adapt.

ParameterTypeDescription
lastinteger
methods_pathAlso write a Markdown methods note (datasets with DOI and version + every analysis run)
overwriteboolean

library_create

Create a library: a named, saved subset of interventions — on a topic, in a period, of a group — from one or SEVERAL countries, for focused and comparative analysis. Each country gets its own definition (terms, filters, time window), recorded with the edition of the data. Returns the description of what was gathered (see library_describe). Then pass library=<name> to any analysis tool. Equivalent terms across countries are the user's claim: say so when reporting.

ParameterTypeDescription
countries *arrayISO2 codes of the chambers it takes (one or several)
name *stringLibrary name (case-insensitive)
colorstringColour in the explorer
date_fromYYYY or YYYY-MM-DD
date_toYYYY or YYYY-MM-DD (inclusive)
days_afterinteger
days_beforeinteger
descriptionstring
event_datesAlign on an event: {ISO2: 'YYYY-MM-DD'} per country; each country's window becomes event − days_before … event + days_after (stored as plain dates). To find the dates: term_counter (first use per…
exclude_chairbooleanLeave out the presiding officer's turns (procedural speech: giving the floor, calling votes)
extendbooleanAdd to an existing library of that name instead of failing
id_dep
labelCommon concept the parts share ('abortion'), recorded in every country's definition
max_turn_wordsLeave out turns longer than this many words — mostly documents read into the record; 10000 is a sensible check
min_occurrencesintegerTimes the terms must appear in the intervention: 2-3 keeps those that DISCUSS the topic, not those that mention it
partyParty label as an ILIKE pattern, e.g. 'PSOE' or '%Frente%'
per_countryPer-country overrides of the settings above, e.g. {'BR': {'terms': 'aborto+interrupção da gravidez'}, 'ES': {'date_from': '2010'}}
regexbooleanterms is one RE2 regular expression
sexSpeaker's sex (linked deputies only)
speech_onlybooleanOnly rows with dm_speech = 1 (recommended)
termsAn intervention enters if it uses ANY of these: comma- or '+'-separated, '*' ends a prefix, whole words, case- and accent-insensitive (no need to add accent variants; text matched by several counts on…

library_edit

Refine a library by hand: add or remove interventions, or attach a note and tags to one. Removed interventions stay excluded when the library is rebuilt from its definitions.

ParameterTypeDescription
action *stringadd / remove interventions (by id_ints or by a query), or note one (note and/or tags)
name *stringLibrary name (case-insensitive)
id_intsIntervention ids
notenote: text attached to the intervention (id_ints[0])
sqladd/remove: a read-only SELECT returning a column id_int, e.g. after reading kwic or search_text results
tagsnote: tags attached to the intervention

library_combine

A new library from two existing ones (notes and tags travel with the interventions).

ParameterTypeDescription
a *stringLibrary name (case-insensitive)
b *stringLibrary name (case-insensitive)
name *stringName of the NEW library
op *stringunion (in either), intersection (in both), difference (in a, not in b)
descriptionstring

library_describe

What is in a library, per country: interventions, sessions, dates, speakers, words, linkage, share of the chair and of very long turns, years too thin to read as trends, the definitions and the data edition — with warnings for comparing countries. Call it before analysing.

ParameterTypeDescription
nameLibrary name; omit to list every library

library_delete

Delete a library (only the library: the data are not touched). Without confirm=true it only says what would be deleted.

ParameterTypeDescription
name *stringLibrary name (case-insensitive)
confirmbooleanMust be true: deleting cannot be undone

library_rebuild

After downloading a new edition of a country: rebuild the library on it. Definitions run again; interventions added by hand, combined or imported, and their notes, are found again by their text; exclusions are kept. Reports what came in and what was lost, per country.

ParameterTypeDescription
name *stringLibrary name (case-insensitive)

library_export

Export for the Diarios Explorer: one .2replib per country (the explorer holds one country at a time) plus an index (.parlaibero-biblioteca.json) that library_import uses to rebuild the whole comparative library. Each file must be imported in the explorer with ITS country's CSV loaded.

ParameterTypeDescription
folder *stringDestination folder (absolute, or relative to the client's working directory)
name *stringLibrary name (case-insensitive)
overwriteboolean
table_formatAlso write every intervention of the library with its metadata, note and tags

library_import

Bring libraries made in the Diarios Explorer into the MCP — several countries' files become one comparative library. Every item is checked against the loaded data (row → intervention, then its date and speaker); whatever does not match is reported, not translated silently.

ParameterTypeDescription
paths *array.2replib files exported by the explorer (one per country), an index .parlaibero-biblioteca.json, or a folder
forcebooleanImport even when the files were written on another version of the data (only items whose date and speaker still match)
nameName of the new library (default: the one in the files)

cooccurrence_network

Network of WORDS of a library and its themes: the library's characteristic words and expressions (its lexicon against the rest of the country's corpus), joined when they occur in the same intervention (or fragment) more than chance (signed G², each term's k strongest neighbours, weight = observed/expected), clustered by Leiden into themes. Per theme: terms, coverage, words of the parties (per 1,000 of their words) and the interventions to read first. The Diarios Explorer's method, ported and tested against its code. Writes an interactive HTML, CSV, JSON and a summary. One…

ParameterTypeDescription
library *stringLibrary name (the network is built on its interventions)
date_fromYYYY or YYYY-MM-DD
date_toYYYY or YYYY-MM-DD (inclusive)
entitiesNot accepted: this network finds its words itself. Actors go to comention_network
excludeTerms to leave out after reading the themes (any case or accents)
exclude_chairbooleanLeave out the presiding officer's turns (procedural speech: giving the floor, calling votes)
expressionsbooleanJoin the corpus's multi-word expressions ('reforma da previdência') into one node (tables of the Diarios Explorer, downloaded once and checked against the loaded dataset)
formatsFiles to write in output_dir (default all four)
fragmentinteger
layoutstringLayout the page opens with (it can be switched there): 'force'; 'clusters', each group (theme, community, party) as a separate disc, kept apart; 'rings', the Diarios Explorer's centrifugal layout: rin…
max_edge_widthnumberWidest line in the page, in px (lines stay thin: weights are read in the tooltips and tables)
max_node_sizenumberLargest node radius in the page, in px on screen (nodes keep their size when zooming); the page has a control
max_turn_wordsLeave out turns longer than this many words — mostly documents read into the record; 10000 is a sensible check
neighboursintegerEach term keeps its k strongest edges (by G²)
output_dirABSOLUTE folder for the files
overwriteboolean
resolutionnumberLeiden resolution γ: higher, more and smaller themes (0.6 / 1 / 1.6 in the explorer)
seedinteger
speech_onlybooleanLeave out stage directions in brackets and upper-case lines (vote lists, headers)
unitstringUnit of context: the whole intervention, or consecutive fragments of `fragment` tokens
vocabularyintegerTerms of the library's lexicon used as nodes (the most over-used against the rest of the corpus)

comention_network

Network of ACTORS (people and institutions) mentioned in the same intervention of a library: co (volume), NPMI (affinity), Jaccard, counts by group and each actor's bias between two groups, Leiden communities, centralities, examples (KWIC) and ambiguity warnings. Writes an interactive HTML (light/ dark, accessible, with tables), CSV, JSON and a summary. One network per country. Without `entities` it proposes candidates (proper names, acronyms) and builds nothing until you confirm them. Words and ideas are not actors: their network is cooccurrence_network.

ParameterTypeDescription
library *stringLibrary name (the network is built on its interventions)
date_fromYYYY or YYYY-MM-DD
date_toYYYY or YYYY-MM-DD (inclusive)
entitiesActors [{name, type: persona|institucion, pattern, exclude?}]: people and institutions only (words and ideas are cooccurrence_network's nodes). pattern and exclude are regular expressions (RE2: no loo…
exclude_chairbooleanLeave out the presiding officer's turns (procedural speech: giving the floor, calling votes)
formatsFiles to write in output_dir (default all four)
group_bystringColumn the group labels refer to (party, sex…)
groupsUp to two contrast groups of labels of `group_by`, e.g. {'left': ['PT', 'PSOL'], 'right': ['PL']}; every other label is 'rest'. Case-insensitive. No default: the classification is yours
kwic_per_entityinteger
layoutstringLayout the page opens with (it can be switched there): 'force'; 'clusters', each group (theme, community, party) as a separate disc, kept apart; 'rings', the Diarios Explorer's centrifugal layout: rin…
max_edge_widthnumberWidest line in the page, in px (lines stay thin: weights are read in the tooltips and tables)
max_entitiesinteger
max_node_sizenumberLargest node radius in the page, in px on screen (nodes keep their size when zooming); the page has a control
max_nodesinteger
max_turn_wordsLeave out turns longer than this many words — mostly documents read into the record; 10000 is a sensible check
min_coMinimum interventions together; default max(5, N/120), reported
min_npminumberMinimum NPMI (unrounded)
output_dirABSOLUTE folder for the files
overwriteboolean
pooledbooleanOne network for all the library's countries instead of one per country
seedinteger

mention_network

Directed network of who mentions whom in a library: an arrow speaker → deputy (or external actor) counts the speaker's interventions that name them. Names come from the deputies register (in office on the day), by full name anywhere or by surname after a title; homonyms are resolved by the title's gender and the party written next to the name, otherwise listed apart (never guessed). The record's notes in brackets are not counted. Gives in/out strength, PageRank, reciprocity, Leiden communities, a group → group matrix, E-I and asymmetric pairs, and writes an interactive…

ParameterTypeDescription
library *stringLibrary name (the network is built on its interventions)
date_fromYYYY or YYYY-MM-DD
date_toYYYY or YYYY-MM-DD (inclusive)
exclude_chairbooleanLeave out the presiding officer's turns (procedural speech: giving the floor, calling votes)
external_actorsPeople or bodies outside the chamber to count as targets: [{name, aliases: [...], role}]. They are matched first, by any alias, so declaring a homonym of a deputy (a minister, a former adviser) also k…
formatsFiles to write in output_dir (default all four)
group_bystringColumn the group labels refer to (party, sex…)
groupsUp to two contrast groups of labels of `group_by`, e.g. {'left': ['PT', 'PSOL'], 'right': ['PL']}; every other label is 'rest'. Case-insensitive. No default: the classification is yours
honorificsWhether 'señor/senhor X' alone counts as naming the deputy X. Default by language, as measured: yes in Spanish, no in Portuguese (in Brazil it names ministers, judges and former presidents as often a…
layoutstringLayout the page opens with (it can be switched there): 'force'; 'clusters', each group (theme, community, party) as a separate disc, kept apart; 'rings', the Diarios Explorer's centrifugal layout: rin…
max_edge_widthnumberWidest line in the page, in px (lines stay thin: weights are read in the tooltips and tables)
max_node_sizenumberLargest node radius in the page, in px on screen (nodes keep their size when zooming); the page has a control
max_turn_wordsLeave out turns longer than this many words — mostly documents read into the record; 10000 is a sensible check
mention_kinds'reference' = talking ABOUT someone (default); 'address' = speaking TO them
min_mentionsintegerMinimum interventions per directed edge
min_speakersintegerMinimum distinct speakers mentioning a target
output_dirABSOLUTE folder for the files
overwriteboolean
seedinteger
target_scopestringWho can be mentioned: deputies of the chamber, the external actors given, or both
top_nintegerPeople kept, by total strength
validation_sampleintegerWrite a random sample of N resolved mentions to check by hand

theme_dossier

The evidence to READ the themes of a word network, so that a theme is more than a list of words. It rebuilds what the network read and proves it (every theme's interventions equal the file's), then gives per theme: core and bridge terms, links to other themes, who sustains it (speakers, sessions: a theme held by one debate is an episode), its profile by year, the words each group says more inside it (a first hint of frames), its stability when Leiden is re-run, and a reading sample stratified by group and year with passages cut from the record. Writes the dossier (JSON, Mar…

ParameterTypeDescription
network *stringABSOLUTE path of the <library>_words.json that cooccurrence_network wrote (one per country)
group_bystringColumn of the groups compared inside each theme (party, sex…)
output_dirABSOLUTE folder; default the network file's
overwriteboolean
passagesintegerPassages per intervention, around the densest clusters of the theme's words
sampleintegerInterventions per theme in the reading sample, one per group and year in turn, after the 3 the network ranks first
seedintegerSeed of the reading sample
stability_runsintegerLeiden re-runs with other seeds on the saved graph
themeA theme's number, as in the page: its full dossier, with the reading sample and its passages. Omit for the overview of all themes (and the files)
windowintegerWords on each side of the theme's words

check_codebook

Checks a codebook of themes and frames written after reading theme_dossier: its schema and theme numbers, and every anchor against the record (the id exists and is in the library; the quote appears verbatim; it holds the theme's words). Writes a blind sample of passages (no group, no theme) with two empty coding files, one for a person and one for the agent, who codes in a fresh context without the key or the dossier; with both filled (human=, agent=) it gives their agreement (Cohen's κ) and each theme's and frame's share of the coded passages, overall and by group, with W…

ParameterTypeDescription
codebook *stringABSOLUTE path of the codebook that theme_dossier wrote, filled
agentABSOLUTE path of the same sample coded by the agent
group_bystringColumn of the groups (party, sex…)
humanABSOLUTE path of the sample coded by a person
output_dirABSOLUTE folder; default the codebook's
overwritebooleanReplace the sample and coding files (they may hold codes)
sample_sizeintegerPassages in the blind sample to code, allocated to the groups in proportion to their size
seedintegerSeed of the sample: the same seed draws the same sample

theme_report

The last step of reading a word network's themes: a report that interprets them for the researcher. Without `report` it writes a spec template (JSON) listing the quotable anchors and every figure as a placeholder; you write the interpretation in it (title, lede, findings, a paragraph after each figure, the themes in blocks with their frames and quotes, caveats, next steps). With `report` it checks the spec (every figure is a placeholder the engine fills, every quote an anchor of the codebook found verbatim in the record now, every codable theme in the report once; bare numb…

ParameterTypeDescription
codebook *stringABSOLUTE path of the filled codebook (checked with check_codebook)
group_bystringColumn of the groups in the figures (party, sex…); a spec keeps its own
languageLanguage of the report; default the country's
output_dirABSOLUTE folder; default the codebook's (template) or the spec's (report)
overwritebooleanReplace the spec template (it may hold your text)
reportABSOLUTE path of the report spec with your interpretation. Omit it to write the spec template next to the codebook