This code and accompanying prompt design were developed by Eduardo Ryô Tamaki and Yujin J. Jung, with additional contributions from the broader project team, as part of our ongoing research on large language models and the measurement of populist communication. The materials are made available for research and educational use. Any use, adaptation, or redistribution of this code requires an appropriate scholarly citation. Users must cite the following reference in any publication, working paper, presentation, or dataset that draws on these materials:
Tamaki, Eduardo Ryô, Yujin J. Jung, Julia Chatterley, Grant Mitchell, Semir Dzebo, Cristóbal Sandoval, Levente Littvay, and Kirk A. Hawkins. “Populism Meets AI: Advancing Populism Research with LLMs.” arXiv preprint arXiv:2510.07458 (2025).
We appreciate adherence to this citation requirement, as it ensures proper attribution and supports transparent and reproducible research practices across the scholarly community.