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
- Michael Zehetleitner (ORCID: https://orcid.org/0000-0003-3363-2680)
- Anna‐Maria Mayer (ORCID: https://orcid.org/0000-0002-8562-5418)
- Julia Dietrich (ORCID: https://orcid.org/0000-0002-3923-7780)
Institutions
- Catholic University of Eichstätt-Ingolstadt (DE)
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