Large Language Models in Thematic Analysis: Prompt Engineering, Evaluation, and Guidelines for Qualitative Software Engineering Research
Not on the map. Why?
Abstract (arXiv)
As artificial intelligence advances, large language models (LLMs) are entering qualitative research workflows, yet no reproducible methods exist for integrating them into established approaches like thematic analysis (TA), one of the most common qualitative methods in software engineering research. Moreover, existing studies lack systematic evaluation of LLM-generated qualitative outputs against established quality criteria. We designed and iteratively refined prompts for Phases 2-5 of Braun and Clarke's reflexive TA, then tested outputs from multiple LLMs against codes and themes produced by experienced researchers. Using 15 interviews on software engineers' well-being, we conducted blind evaluations with four expert evaluators who applied rubrics derived directly from Braun and Clarke's quality criteria. Evaluators preferred LLM-generated codes 61% of the time, finding them analytically useful for answering the research question. However, evaluators also identified limitations: LLMs fragmented data unnecessarily, missed latent interpretations, and sometimes produced themes with unclear boundaries. Our contributions are threefold. First, a reproducible approach integrating refined, documented prompts with an evaluation framework to operationalize Braun and Clarke's reflexive TA. Second, an empirical comparison of LLM- and human-generated codes and themes in software engineering data. Third, guidelines for integrating LLMs into qualitative analysis while preserving methodological rigour, clarifying when and how LLMs can assist effectively and when human interpretation remains essential.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). First posted on arXiv 21 Oct 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 1; 2026: 4.
5 papers.
- 2025Multi-LLM Thematic Analysis with Dual Reliability Metrics: Combining Cohen's Kappa and Semantic Similarity for Qualitative Research Validationcited by 0
- 2026Bridging Human Interpretation and Machine Representation: A Landscape of Qualitative Data Analysis in the LLM Eracited by 0
- 2026Taking a Pulse on How Generative AI is Reshaping the Software Engineering Research Landscapecited by 0
- 2026Designing an Auditable LLM-Supported Workflow for Qualitative Thematic Analysiscited by 0
- 2026Understanding Issues, Causes and Solutions in Open-Source LLM-based Multi-Agent Systemscited by 0
- 2026Understanding Issues, Causes and Solutions in Open-Source LLM-based Multi-Agent Systems1 Oct 2026
- 2026Designing an Auditable LLM-Supported Workflow for Qualitative Thematic Analysis31 Aug 2026
- 2026Taking a Pulse on How Generative AI is Reshaping the Software Engineering Research Landscape13 Apr 2026
- 2026Bridging Human Interpretation and Machine Representation: A Landscape of Qualitative Data Analysis in the LLM Era16 Jan 2026
- 2025Multi-LLM Thematic Analysis with Dual Reliability Metrics: Combining Cohen's Kappa and Semantic Similarity for Qualitative Research Validation23 Dec 2025