mlsanityData to 14 Oct 2026

Towards Human-Level Text Coding with LLMs: The Case of Fatherhood Roles in Public Policy Documents

arXiv 2311.11844 ↗First posted 20 Nov 2023cs.CL cs.CYcited by 3

Not on the map. Why?

Abstract (arXiv)

Recent advances in large language models (LLMs) like GPT-3.5 and GPT-4 promise automation with better results and less programming, opening up new opportunities for text analysis in political science. In this study, we evaluate LLMs on three original coding tasks involving typical complexities encountered in political science settings: a non-English language, legal and political jargon, and complex labels based on abstract constructs. Along the paper, we propose a practical workflow to optimize the choice of the model and the prompt. We find that the best prompting strategy consists of providing the LLMs with a detailed codebook, as the one provided to human coders. In this setting, an LLM can be as good as or possibly better than a human annotator while being much faster, considerably cheaper, and much easier to scale to large amounts of text. We also provide a comparison of GPT and popular open-source LLMs, discussing the trade-offs in the model's choice. Our software allows LLMs to be easily used as annotators and is publicly available: https://github.com/lorelupo/pappa.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 0 of its 1 references that are in the map. First posted on arXiv 20 Nov 2023.

Builds on

0 of 1 references.

No references here yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 1; 2026: 1.

3 papers.