GPT is an effective tool for multilingual psychological text analysis

The social and behavioral sciences have been increasingly using automated text analysis to measure psychological constructs in text. We explore whether GPT, the large-language model (LLM) underlying the AI chatbot ChatGPT, can be used as a tool for automated psychological text analysis in several languages. Across 15 datasets (<i>n</i> = 47,925 manually annotated tweets and news headlines), we tested whether different versions of GPT (3.5 Turbo, 4, and 4 Turbo) can accurately detect psychological constructs (sentiment, discrete emotions, offensiveness, and moral foundations) across 12 languages. We found that GPT (<i>r</i> = 0.59 to 0.77) performed much better than English-language dictionary analysis (<i>r</i> = 0.20 to 0.30) at detecting psychological constructs as judged by manual annotators. GPT performed nearly as well as, and sometimes better than, several top-performing fine-tuned machine learning models. Moreover, GPT's performance improved across successive versions of the model, particularly for lesser-spoken languages, and became less expensive. Overall, GPT may be superior to many existing methods of automated text analysis, since it achieves relatively high accuracy across many languages, requires no training data, and is easy to use with simple prompts (e.g., "is this text negative?") and little coding experience. We provide sample code and a video tutorial for analyzing text with the GPT application programming interface. We argue that GPT and other LLMs help democratize automated text analysis by making advanced natural language processing capabilities more accessible, and may help facilitate more cross-linguistic research with understudied languages.

Authors

Institutions

Publication Details

Journal
Proceedings of the National Academy of Sciences
Published
2024-08-12
DOI
https://doi.org/10.1073/pnas.2308950121
Citations
197
Primary Topic
Misinformation and Its Impacts
Type
article
Field-Weighted Citation Impact
218.47

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

GPT is an effective tool for multilingual psychological text analysis

Raja Marjieh, Claire Robertson, Dan-Mircea Mirea, Ilia Sucholutsky et al.
197 citations
Proceedings of the National Academy of Sciences
Misinformation and Its Impacts
218.47
article

GPT is an effective tool for multilingual psychological text analysis

Raja Marjieh, Claire Robertson, Dan-Mircea Mirea, Ilia Sucholutsky, Jay Joseph Van Bavel, Steve Rathje
article en
197 citations

Abstract

The social and behavioral sciences have been increasingly using automated text analysis to measure psychological constructs in text. We explore whether GPT, the large-language model (LLM) underlying the AI chatbot ChatGPT, can be used as a tool for automated psychological text analysis in several languages. Across 15 datasets (<i>n</i> = 47,925 manually annotated tweets and news headlines), we tested whether different versions of GPT (3.5 Turbo, 4, and 4 Turbo) can accurately detect psychological constructs (sentiment, discrete emotions, offensiveness, and moral foundations) across 12 languages. We found that GPT (<i>r</i> = 0.59 to 0.77) performed much better than English-language dictionary analysis (<i>r</i> = 0.20 to 0.30) at detecting psychological constructs as judged by manual annotators. GPT performed nearly as well as, and sometimes better than, several top-performing fine-tuned machine learning models. Moreover, GPT's performance improved across successive versions of the model, particularly for lesser-spoken languages, and became less expensive. Overall, GPT may be superior to many existing methods of automated text analysis, since it achieves relatively high accuracy across many languages, requires no training data, and is easy to use with simple prompts (e.g., "is this text negative?") and little coding experience. We provide sample code and a video tutorial for analyzing text with the GPT application programming interface. We argue that GPT and other LLMs help democratize automated text analysis by making advanced natural language processing capabilities more accessible, and may help facilitate more cross-linguistic research with understudied languages.

Proceedings of the National Academy of SciencesVol. 121(34)
Princeton University (US), New York University (US), Norwegian School of Economics (NO)
Russell Sage Foundation, Sage Foundation, Templeton World Charity Foundation, Natural Sciences and Engineering Research Council of Canada, National Institute of Mental Health
Quality Education
Openalex Percentile: Top 0%
Misinformation and Its Impacts
218.47
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.