English

AI Coding with Few-Shot Prompting for Thematic Analysis

Computation and Language 2025-04-11 v1

Abstract

This paper explores the use of large language models (LLMs), here represented by GPT 3.5-Turbo to perform coding for a thematic analysis. Coding is highly labor intensive, making it infeasible for most researchers to conduct exhaustive thematic analyses of large corpora. We utilize few-shot prompting with higher quality codes generated on semantically similar passages to enhance the quality of the codes while utilizing a cheap, more easily scalable model.

Keywords

Cite

@article{arxiv.2504.07408,
  title  = {AI Coding with Few-Shot Prompting for Thematic Analysis},
  author = {Samuel Flanders and Melati Nungsari and Mark Cheong Wing Loong},
  journal= {arXiv preprint arXiv:2504.07408},
  year   = {2025}
}
R2 v1 2026-06-28T22:53:08.377Z