Language models in qualitative research: How prompt design affects agreement with humans

Preregistration of the study "Language models in qualitative research: How prompt design affects agreement with humans". Large language models are increasingly used to assign codes to texts in qualitative research, and the way a model is instructed may affect the quality of its codings. This study tests four prompt factors in a 2 × 2 × 2 × 4 design with 32 prompt settings: examples for each code, a required reasoning, a required evidence quote, and the number of codes per prompt. The language model gpt-6-luna codes four human-coded datasets (Quali-Trends, Civic, GoEmotions, Persuasion for Good) under every prompt setting. The outcomes are answer quality, which is the agreement with the human codes corrected for guessing, and the abstention rate. Main effects, interactions and best prompt settings are estimated per dataset with a Bayesian bootstrap and classified against a region of practical equivalence (ROPE) of ±2 percentage points; the findings are then compared across the datasets.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-29
DOI
https://doi.org/10.5281/zenodo.24651433
Primary Topic
Computational and Text Analysis Methods
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Language models in qualitative research: How prompt design affects agreement with humans

Michael Zehetleitner, Anna‐Maria Mayer, Julia Dietrich
Zenodo (CERN European Organization for Nuclear Research)
Computational and Text Analysis Methods
article

Language models in qualitative research: How prompt design affects agreement with humans

Michael Zehetleitner, Anna‐Maria Mayer, Julia Dietrich
article en

Abstract

Preregistration of the study "Language models in qualitative research: How prompt design affects agreement with humans". Large language models are increasingly used to assign codes to texts in qualitative research, and the way a model is instructed may affect the quality of its codings. This study tests four prompt factors in a 2 × 2 × 2 × 4 design with 32 prompt settings: examples for each code, a required reasoning, a required evidence quote, and the number of codes per prompt. The language model gpt-6-luna codes four human-coded datasets (Quali-Trends, Civic, GoEmotions, Persuasion for Good) under every prompt setting. The outcomes are answer quality, which is the agreement with the human codes corrected for guessing, and the abstention rate. Main effects, interactions and best prompt settings are estimated per dataset with a Bayesian bootstrap and classified against a region of practical equivalence (ROPE) of ±2 percentage points; the findings are then compared across the datasets.

Zenodo (CERN European Organization for Nuclear Research)
Catholic University of Eichstätt-Ingolstadt (DE)
Computational and Text Analysis Methods
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon