From Topic Models to Large Language Models: A Methodological Review of Computational Text Analysis in Sociology
Keywords:
computational sociology, text as data, topic models, word embeddings, large language modelsAbstract
Sociologists have long treated text as evidence of culture, institutions and social relations. Over the past two decades, computational methods have made it possible to analyse corpora of a size that no team of human coders could read, and the arrival of large language models (LLMs) has changed the field again. This review traces that development through three methodological eras (bag-of-words models, word embeddings and generative models), explains what each family of methods measures, and assesses the evidence on how well LLMs perform the tasks sociologists care about. Zero-shot annotation with instruction-tuned models has matched or exceeded crowd workers on several classification tasks at a fraction of the cost, with intercoder agreement above 90 percent in one widely cited study, but accuracy varies widely across tasks and datasets and falls on newer, less familiar material. Simulating survey respondents with LLMs reproduces some aggregate patterns while misrepresenting the opinions of particular groups. We argue that the main contribution of LLMs is to change the economics of measurement rather than to replace interpretive judgement, and we propose a validation workflow built on explicit constructs, gold-standard samples, versioned prompts, bias-corrected downstream estimation and full reporting.