IDEAS home Printed from https://ideas.repec.org/p/ajk/ajkdps/416.html

A Golden Era for Open-Ended Questions? Using LLMs for Text Classification Tasks

Author

Listed:
  • Ansgar Hudde

    (University of Cologne)

  • Shannon Taflinger

    (University of Cologne)

Abstract

Open-text questions in quantitative surveys can yield rich information from large samples, but analysing and coding these data using qualitative text analysis is resource-intensive. Large Language Models (LLMs) are a promising tool for scaling up such analyses, reducing time and financial costs. In this paper, we compare the coding accuracy of LLMs with that of student assistants, defining accuracy as agreement with a researcher-coded benchmark dataset. We assess performance on a semi-complex coding task: coding approximately 1,400 open-ended text responses from young US Americans about dating across party-political lines. A researcher-designed coding scheme, developed through thematic qualitative text analysis of the open-text responses, was applied by LLMs and student assistants. We evaluate models from OpenAI, Anthropic, and Mistral, with and without access to training data. The most advanced models outperform student assistants, and performance further increases with training data, highlighting LLMs’ capability to code open-text responses. Whereas previous research has mainly focused on social media texts, comparatively simple and surface-level coding tasks, and a technically oriented audience, we contribute to the literature by studying a particularly promising use case of open-ended survey responses and by providing practical recommendations to applied social scientists.

Suggested Citation

  • Ansgar Hudde & Shannon Taflinger, 2026. "A Golden Era for Open-Ended Questions? Using LLMs for Text Classification Tasks," ECONtribute Discussion Papers Series 416, University of Bonn and University of Cologne, Germany.
  • Handle: RePEc:ajk:ajkdps:416
    as

    Download full text from publisher

    File URL: https://www.econtribute.de/RePEc/ajk/ajkdps/ECONtribute_416_2026.pdf
    File Function: First version, 2026
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Thomas Davidson & Daniel Karell, 2025. "Integrating Generative Artificial Intelligence into Social Science Research: Measurement, Prompting, and Simulation," Sociological Methods & Research, , vol. 54(3), pages 775-793, August.
    2. Benjamin Saunders & Julius Sim & Tom Kingstone & Shula Baker & Jackie Waterfield & Bernadette Bartlam & Heather Burroughs & Clare Jinks, 2018. "Saturation in qualitative research: exploring its conceptualization and operationalization," Quality & Quantity: International Journal of Methodology, Springer, vol. 52(4), pages 1893-1907, July.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Ogundeji, Yewande Kofoworola & Quinn, Amity & Lunney, Meaghan & Chong, Christy & Chew, Derek & Danso, George & Duggan, Shelly & Edwards, Alun & Hopkin, Gareth & Senior, Peter & Sumner, Glen & Williams, 2021. "Factors that influence specialist physician preferences for fee-for-service and salary-based payment models: A qualitative study," Health Policy, Elsevier, vol. 125(4), pages 442-449.
    2. Jennifer Tartaglia & Michelle McIntosh & Jonine Jancey & Jane Scott & Andrea Begley, 2021. "Exploring Feeding Practices and Food Literacy in Parents with Young Children from Disadvantaged Areas," IJERPH, MDPI, vol. 18(4), pages 1-18, February.
    3. Lulu Lunogelo Sakafu & Godfrey Sama Philipo & Christina V Malichewe & Lulu S Fundikira & Flora A Lwakatare & Katherine Van Loon & Beatrice P Mushi & Rebecca J DeBoer & Stella A Bialous & Amie Y Lee, 2022. "Delayed diagnostic evaluation of symptomatic breast cancer in sub-Saharan Africa: A qualitative study of Tanzanian women," PLOS ONE, Public Library of Science, vol. 17(10), pages 1-15, October.
    4. Ingrid van Putten & Catherine Longo & Ashleigh Arton & Matt Watson & Christopher M Anderson & Amber Himes-Cornell & Clara Obregón & Lucy Robinson & Tatiana van Steveninck, 2020. "Shifting focus: The impacts of sustainable seafood certification," PLOS ONE, Public Library of Science, vol. 15(5), pages 1-24, May.
    5. Najwa Taghy & Linda Cambon & Caroline Boulliat & Olivier Aromatario & Claude Dussart, 2021. "Exploring the Determinants of Polypharmacy Prescribing and Dispensing Behaviours in Primary Care for the Elderly—Protocol for a Qualitative Study," IJERPH, MDPI, vol. 18(14), pages 1-10, July.
    6. Sara M. London & Jessica D. Hanson & Michelle Sarche & Kyra Oziel & Dedra Buchwald, 2024. "Reach, Acceptability, and Sustainability of the Native Changing High-Risk Alcohol Use and Increasing Contraception Effectiveness Study (CHOICES) Intervention: A Qualitative Evaluation of an Alcohol-Exposed Pregnancy Prevention Program," IJERPH, MDPI, vol. 21(3), pages 1-10, February.
    7. Christopher Holmberg & Eric Carlström & Helena Collier, 2020. "Registered nurses' perspectives on medically safe practices and sound ethical standards in aesthetic nursing: An interview study," Journal of Clinical Nursing, John Wiley & Sons, vol. 29(5-6), pages 944-954, March.
    8. Kwasniok, Sascha, 2025. "Planned behavior, insurance knowledge and the demand for private disability insurance – Evidence from Germany," EconStor Preprints 321819, ZBW - Leibniz Information Centre for Economics.
    9. Vandana Madhavan & Murale Venugopalan & Bhumika Gupta & Gyanendra Singh Sisodia, 2023. "Addressing Agency Problem in Employee Training: The Role of Goal Congruence," Sustainability, MDPI, vol. 15(4), pages 1-27, February.
    10. Khezar Hayat & Meagen Rosenthal & Ali Hassan Gillani & Panpan Zhai & Muhammad Majid Aziz & Wenjing Ji & Jie Chang & Hao Hu & Yu Fang, 2019. "Perspective of Pakistani Physicians towards Hospital Antimicrobial Stewardship Programs: A Multisite Exploratory Qualitative Study," IJERPH, MDPI, vol. 16(9), pages 1-15, May.
    11. Nixon Lemlem & Prof. Patrick Karanja Ngugi & Dr. Samson Nyang’au Paul, 2025. "Project Stakeholders’ Participation and Implementation of Water Projects in Kenya," Journal of Entrepreneurship and Project Management, CARI Journals Limited, vol. 10(3), pages 66-82.
    12. Van Droogenbroeck, Ellen & Van Hove, Leo, 2020. "Intra-household task allocation in online grocery shopping: Together alone," Journal of Retailing and Consumer Services, Elsevier, vol. 56(C).
    13. Thuy Séran & Anne-Sophie Fernandez & Hervé Chappert, 2024. "Managing coopetition in multi-unit organizations: a management-control perspective," Review of Managerial Science, Springer, vol. 18(10), pages 2889-2924, October.
    14. Cath, Corinne, 2021. "The technology we choose to create: Human rights advocacy in the Internet Engineering Task Force," Telecommunications Policy, Elsevier, vol. 45(6).
    15. Luswata Rogers, 2025. "A Strategy to Improve the Agricultural Loan Portfolio in Finance Trust Bank," International Journal of Research and Innovation in Social Science, International Journal of Research and Innovation in Social Science (IJRISS), vol. 9(9), pages 3838-3874, September.
    16. Martin Mahler & Andrew Murphy, 2025. "Risk of desirable user experiences: insights from those who create, facilitate and accept mobile payments," Electronic Commerce Research, Springer, vol. 25(5), pages 3927-3948, October.
    17. Pablo Gomez‐Carrasco & Carlos Anguiano‐Santos & José Ríos‐Madrid & Melania Salazar‐Ordóñez, 2026. "Between Strategy and Survival? How Agri‐Food SMEs Navigate Voluntary Sustainability Disclosure," Sustainable Development, John Wiley & Sons, Ltd., vol. 34(S2), pages 154-169, March.
    18. Noëllie Dunand & Philippe Golay & Charles Bonsack & Danièle Spagnoli & Valentino Pomini, 2024. "Good psychiatric management for borderline personality disorder: A qualitative study of its implementation in a supported employment team," PLOS ONE, Public Library of Science, vol. 19(3), pages 1-14, March.
    19. Karina Soubra & Camilla Tamworth & Zeast Kamal & Clare Brook & Dawn Langdon & Jo Billings, 2023. "Health and social care workers experiences of coping while working in the frontline during the COVID-19 pandemic: One year on," PLOS ONE, Public Library of Science, vol. 18(4), pages 1-27, April.
    20. Carla Dias-Barbosa & Natalie Taylor & Kevin Chan & Jean Philippe York & Jorge Puelles & Rajeev Chavda, 2026. "Patient Insights on Acne Hyperpigmentation, Trifarotene, and Skincare: 6-Month, LEAP Phase 4 Qualitative Exit Interview Findings," The Patient: Patient-Centered Outcomes Research, Springer;International Academy of Health Preference Research, vol. 19(2), pages 343-352, March.

    More about this item

    Keywords

    ;
    ;
    ;

    JEL classification:

    • C81 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Methodology for Collecting, Estimating, and Organizing Microeconomic Data; Data Access
    • C45 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods: Special Topics - - - Neural Networks and Related Topics
    • C83 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Survey Methods; Sampling Methods

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:ajk:ajkdps:416. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: ECONtribute Office (email available below). General contact details of provider: https://www.econtribute.de .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.