parlaibero-mcp
v0.6.2MCP 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).
| Parameter | Type | Description |
|---|---|---|
country * | string | ISO2 code (ES, MX, BR…) or country name |
document | string | readme (overview, sources, coverage) · data_dictionary (columns) · known_limitations (caveats) · process_report (how it was built) · corpus_info (machine-readable facts, linkage rates) · match_me… |
language | string | Language of the markdown documents |
how_to_cite
Formatted citation (latest published version) and DOI of a country's dataset.
| Parameter | Type | Description |
|---|---|---|
country * | string | ISO2 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.
| Parameter | Type | Description |
|---|---|---|
country * | string | ISO2 code (ES, MX, BR…) or country name |
force | boolean | Re-download even if the local copy is current |
import_from_folder
Load ParlaIbero CSV files that were downloaded by hand from Dataverse.
| Parameter | Type | Description |
|---|---|---|
folder * | string | Folder 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.
| Parameter | Type | Description |
|---|---|---|
sql * | string | DuckDB SQL over the tables in describe_data |
max_cell_chars | integer | Truncate long text cells |
max_rows | integer | |
timeout_s | integer |
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').
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Word or phrase (or RE2 regular expression if regex=true) |
countries | ISO2 codes to restrict to; omit for every downloaded country | |
date_from | YYYY or YYYY-MM-DD | |
date_to | YYYY or YYYY-MM-DD (inclusive) | |
id_dep | ||
library | Name of a library (see library_describe): only its interventions; countries default to the library's | |
limit | integer | |
offset | integer | |
party | Party label as an ILIKE pattern, e.g. 'PSOE' or '%Frente%' | |
regex | boolean | |
sex | Speaker's sex (linked deputies only) | |
speech_only | boolean | Only rows with dm_speech = 1 (recommended) |
whole_word | boolean | Plain searches: match whole words only |
get_intervention
Full text and metadata of one intervention, optionally with surrounding turns.
| Parameter | Type | Description |
|---|---|---|
id_int * | string | Intervention id, e.g. ES0140012300045 |
context | integer | Also 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).
| Parameter | Type | Description |
|---|---|---|
id_session * | string | Session id, e.g. ES0140012 |
include_text | boolean | Full text of every turn (can be long) |
max_rows | integer |
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.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Word 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 |
by | string | Grouping dimension |
countries | ISO2 codes to restrict to; omit for every downloaded country | |
date_from | YYYY or YYYY-MM-DD | |
date_to | YYYY or YYYY-MM-DD (inclusive) | |
exclude_chair | boolean | Leave out the presiding officer's turns (procedural speech: giving the floor, calling votes) |
library | Name of a library (see library_describe): only its interventions; countries default to the library's | |
max_rows | integer | |
max_turn_words | Leave out turns longer than this many words — mostly documents read into the record; 10000 is a sensible check | |
party | Party label as an ILIKE pattern, e.g. 'PSOE' or '%Frente%' | |
sex | Speaker's sex (linked deputies only) | |
speech_only | boolean | Only 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.
| Parameter | Type | Description |
|---|---|---|
terms * | string | Comma-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_path | Write a chart: '.svg' (static figure for papers and slides) or '.html' (page with hover, dark mode and data table). At most 8 series. | |
countries | ISO2 codes to restrict to; omit for every downloaded country | |
date_from | YYYY or YYYY-MM-DD | |
date_to | YYYY or YYYY-MM-DD (inclusive) | |
exclude_chair | boolean | Leave out the presiding officer's turns (procedural speech: giving the floor, calling votes) |
language | string | Language of the chart labels |
library | Name of a library (see library_describe): only its interventions; countries default to the library's | |
max_turn_words | Leave out turns longer than this many words — mostly documents read into the record; 10000 is a sensible check | |
measure | string | per_million: occurrences per million words (comparable across years); count: raw occurrences; interventions_pct: % of interventions using the term |
overwrite | boolean | |
party | Party label as an ILIKE pattern, e.g. 'PSOE' or '%Frente%' | |
sex | Speaker's sex (linked deputies only) | |
smoothing | integer | Centred moving average over ±N years (Google Ngram uses 3) |
speech_only | boolean | Only rows with dm_speech = 1 (recommended) |
split_by_country | boolean | One 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.
| Parameter | Type | Description |
|---|---|---|
terms * | string | Comma-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… |
countries | ISO2 codes to restrict to; omit for every downloaded country | |
date_from | YYYY or YYYY-MM-DD | |
date_to | YYYY or YYYY-MM-DD (inclusive) | |
exclude_chair | boolean | Leave out the presiding officer's turns (procedural speech: giving the floor, calling votes) |
library | Name of a library (see library_describe): only its interventions; countries default to the library's | |
max_turn_words | Leave out turns longer than this many words — mostly documents read into the record; 10000 is a sensible check | |
party | Party label as an ILIKE pattern, e.g. 'PSOE' or '%Frente%' | |
sex | Speaker's sex (linked deputies only) | |
speech_only | boolean | Only rows with dm_speech = 1 (recommended) |
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.
| Parameter | Type | Description |
|---|---|---|
a * | string | Group A: 'F', a party label, a period '2000-2010', an ISO2 code, an id_dep or a library name |
field * | string | What separates the two groups |
b | Group B, same kind as A; omit for 'everyone else' | |
countries | ISO2 codes to restrict to; omit for every downloaded country | |
date_from | YYYY or YYYY-MM-DD | |
date_to | YYYY or YYYY-MM-DD (inclusive) | |
exclude_chair | boolean | Leave out the presiding officer's turns (procedural speech: giving the floor, calling votes) |
library | Name of a library (see library_describe): only its interventions; countries default to the library's | |
max_turn_words | Leave out turns longer than this many words — mostly documents read into the record; 10000 is a sensible check | |
min_count | integer | |
top | integer |
kwic
Keyword in context: concordance lines (left context · match · right context) from a sample of the interventions that use the term, for close reading.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Word or phrase ('*' ends a prefix), or RE2 regex if regex=true |
countries | ISO2 codes to restrict to; omit for every downloaded country | |
date_from | YYYY or YYYY-MM-DD | |
date_to | YYYY or YYYY-MM-DD (inclusive) | |
library | Name of a library (see library_describe): only its interventions; countries default to the library's | |
n | integer | Interventions to sample |
order | string | random gives a representative sample (reproducible with seed) |
party | Party label as an ILIKE pattern, e.g. 'PSOE' or '%Frente%' | |
regex | boolean | |
seed | integer | |
sex | Speaker's sex (linked deputies only) | |
whole_word | boolean | |
width | integer | Characters 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.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Word or phrase ('*' ends a prefix) |
countries | ISO2 codes to restrict to; omit for every downloaded country | |
date_from | YYYY or YYYY-MM-DD | |
date_to | YYYY or YYYY-MM-DD (inclusive) | |
exclude_chair | boolean | Leave out the presiding officer's turns (procedural speech: giving the floor, calling votes) |
exclude_stopwords | boolean | |
library | Name of a library (see library_describe): only its interventions; countries default to the library's | |
max_turn_words | Leave out turns longer than this many words — mostly documents read into the record; 10000 is a sensible check | |
min_count | integer | |
party | Party label as an ILIKE pattern, e.g. 'PSOE' or '%Frente%' | |
sample | integer | Interventions sampled |
sex | Speaker's sex (linked deputies only) | |
top | integer | |
window | integer | Tokens 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.
| Parameter | Type | Description |
|---|---|---|
by | string | Period |
countries | ISO2 codes to restrict to; omit for every downloaded country | |
date_from | YYYY or YYYY-MM-DD | |
date_to | YYYY or YYYY-MM-DD (inclusive) | |
library | Name 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Output file, .csv or .parquet (absolute, or relative to the client's working directory) |
sql * | string | One SELECT over the tables in describe_data |
format | Defaults to the extension | |
overwrite | boolean |
query_log
The analyses run so far (tool, parameters, dataset versions), for reproducibility. Can write a methods appendix ready to adapt.
| Parameter | Type | Description |
|---|---|---|
last | integer | |
methods_path | Also write a Markdown methods note (datasets with DOI and version + every analysis run) | |
overwrite | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
countries * | array | ISO2 codes of the chambers it takes (one or several) |
name * | string | Library name (case-insensitive) |
color | string | Colour in the explorer |
date_from | YYYY or YYYY-MM-DD | |
date_to | YYYY or YYYY-MM-DD (inclusive) | |
days_after | integer | |
days_before | integer | |
description | string | |
event_dates | Align 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_chair | boolean | Leave out the presiding officer's turns (procedural speech: giving the floor, calling votes) |
extend | boolean | Add to an existing library of that name instead of failing |
id_dep | ||
label | Common concept the parts share ('abortion'), recorded in every country's definition | |
max_turn_words | Leave out turns longer than this many words — mostly documents read into the record; 10000 is a sensible check | |
min_occurrences | integer | Times the terms must appear in the intervention: 2-3 keeps those that DISCUSS the topic, not those that mention it |
party | Party label as an ILIKE pattern, e.g. 'PSOE' or '%Frente%' | |
per_country | Per-country overrides of the settings above, e.g. {'BR': {'terms': 'aborto+interrupção da gravidez'}, 'ES': {'date_from': '2010'}} | |
regex | boolean | terms is one RE2 regular expression |
sex | Speaker's sex (linked deputies only) | |
speech_only | boolean | Only rows with dm_speech = 1 (recommended) |
terms | An 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.
| Parameter | Type | Description |
|---|---|---|
action * | string | add / remove interventions (by id_ints or by a query), or note one (note and/or tags) |
name * | string | Library name (case-insensitive) |
id_ints | Intervention ids | |
note | note: text attached to the intervention (id_ints[0]) | |
sql | add/remove: a read-only SELECT returning a column id_int, e.g. after reading kwic or search_text results | |
tags | note: tags attached to the intervention |
library_combine
A new library from two existing ones (notes and tags travel with the interventions).
| Parameter | Type | Description |
|---|---|---|
a * | string | Library name (case-insensitive) |
b * | string | Library name (case-insensitive) |
name * | string | Name of the NEW library |
op * | string | union (in either), intersection (in both), difference (in a, not in b) |
description | string |
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.
| Parameter | Type | Description |
|---|---|---|
name | Library 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Library name (case-insensitive) |
confirm | boolean | Must 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Library 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.
| Parameter | Type | Description |
|---|---|---|
folder * | string | Destination folder (absolute, or relative to the client's working directory) |
name * | string | Library name (case-insensitive) |
overwrite | boolean | |
table_format | Also 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.
| Parameter | Type | Description |
|---|---|---|
paths * | array | .2replib files exported by the explorer (one per country), an index .parlaibero-biblioteca.json, or a folder |
force | boolean | Import even when the files were written on another version of the data (only items whose date and speaker still match) |
name | Name 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…
| Parameter | Type | Description |
|---|---|---|
library * | string | Library name (the network is built on its interventions) |
date_from | YYYY or YYYY-MM-DD | |
date_to | YYYY or YYYY-MM-DD (inclusive) | |
entities | Not accepted: this network finds its words itself. Actors go to comention_network | |
exclude | Terms to leave out after reading the themes (any case or accents) | |
exclude_chair | boolean | Leave out the presiding officer's turns (procedural speech: giving the floor, calling votes) |
expressions | boolean | Join 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) |
formats | Files to write in output_dir (default all four) | |
fragment | integer | |
layout | string | Layout 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_width | number | Widest line in the page, in px (lines stay thin: weights are read in the tooltips and tables) |
max_node_size | number | Largest node radius in the page, in px on screen (nodes keep their size when zooming); the page has a control |
max_turn_words | Leave out turns longer than this many words — mostly documents read into the record; 10000 is a sensible check | |
neighbours | integer | Each term keeps its k strongest edges (by G²) |
output_dir | ABSOLUTE folder for the files | |
overwrite | boolean | |
resolution | number | Leiden resolution γ: higher, more and smaller themes (0.6 / 1 / 1.6 in the explorer) |
seed | integer | |
speech_only | boolean | Leave out stage directions in brackets and upper-case lines (vote lists, headers) |
unit | string | Unit of context: the whole intervention, or consecutive fragments of `fragment` tokens |
vocabulary | integer | Terms 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.
| Parameter | Type | Description |
|---|---|---|
library * | string | Library name (the network is built on its interventions) |
date_from | YYYY or YYYY-MM-DD | |
date_to | YYYY or YYYY-MM-DD (inclusive) | |
entities | Actors [{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_chair | boolean | Leave out the presiding officer's turns (procedural speech: giving the floor, calling votes) |
formats | Files to write in output_dir (default all four) | |
group_by | string | Column the group labels refer to (party, sex…) |
groups | Up 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_entity | integer | |
layout | string | Layout 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_width | number | Widest line in the page, in px (lines stay thin: weights are read in the tooltips and tables) |
max_entities | integer | |
max_node_size | number | Largest node radius in the page, in px on screen (nodes keep their size when zooming); the page has a control |
max_nodes | integer | |
max_turn_words | Leave out turns longer than this many words — mostly documents read into the record; 10000 is a sensible check | |
min_co | Minimum interventions together; default max(5, N/120), reported | |
min_npmi | number | Minimum NPMI (unrounded) |
output_dir | ABSOLUTE folder for the files | |
overwrite | boolean | |
pooled | boolean | One network for all the library's countries instead of one per country |
seed | integer |
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…
| Parameter | Type | Description |
|---|---|---|
library * | string | Library name (the network is built on its interventions) |
date_from | YYYY or YYYY-MM-DD | |
date_to | YYYY or YYYY-MM-DD (inclusive) | |
exclude_chair | boolean | Leave out the presiding officer's turns (procedural speech: giving the floor, calling votes) |
external_actors | People 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… | |
formats | Files to write in output_dir (default all four) | |
group_by | string | Column the group labels refer to (party, sex…) |
groups | Up 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 | |
honorifics | Whether '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… | |
layout | string | Layout 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_width | number | Widest line in the page, in px (lines stay thin: weights are read in the tooltips and tables) |
max_node_size | number | Largest node radius in the page, in px on screen (nodes keep their size when zooming); the page has a control |
max_turn_words | Leave 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_mentions | integer | Minimum interventions per directed edge |
min_speakers | integer | Minimum distinct speakers mentioning a target |
output_dir | ABSOLUTE folder for the files | |
overwrite | boolean | |
seed | integer | |
target_scope | string | Who can be mentioned: deputies of the chamber, the external actors given, or both |
top_n | integer | People kept, by total strength |
validation_sample | integer | Write 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…
| Parameter | Type | Description |
|---|---|---|
network * | string | ABSOLUTE path of the <library>_words.json that cooccurrence_network wrote (one per country) |
group_by | string | Column of the groups compared inside each theme (party, sex…) |
output_dir | ABSOLUTE folder; default the network file's | |
overwrite | boolean | |
passages | integer | Passages per intervention, around the densest clusters of the theme's words |
sample | integer | Interventions per theme in the reading sample, one per group and year in turn, after the 3 the network ranks first |
seed | integer | Seed of the reading sample |
stability_runs | integer | Leiden re-runs with other seeds on the saved graph |
theme | A 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) | |
window | integer | Words 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…
| Parameter | Type | Description |
|---|---|---|
codebook * | string | ABSOLUTE path of the codebook that theme_dossier wrote, filled |
agent | ABSOLUTE path of the same sample coded by the agent | |
group_by | string | Column of the groups (party, sex…) |
human | ABSOLUTE path of the sample coded by a person | |
output_dir | ABSOLUTE folder; default the codebook's | |
overwrite | boolean | Replace the sample and coding files (they may hold codes) |
sample_size | integer | Passages in the blind sample to code, allocated to the groups in proportion to their size |
seed | integer | Seed 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…
| Parameter | Type | Description |
|---|---|---|
codebook * | string | ABSOLUTE path of the filled codebook (checked with check_codebook) |
group_by | string | Column of the groups in the figures (party, sex…); a spec keeps its own |
language | Language of the report; default the country's | |
output_dir | ABSOLUTE folder; default the codebook's (template) or the spec's (report) | |
overwrite | boolean | Replace the spec template (it may hold your text) |
report | ABSOLUTE path of the report spec with your interpretation. Omit it to write the spec template next to the codebook |