Data and code for "Embedding qualitative data in LLM semantic space"
Toshizumi Muta
Key points
From the paper's conclusion- Supplementary materials for the paper "Embedding qualitative data in LLM semantic space: A conceptual history, R tutorial, and empirical calibration" (Muta, 2026).
Abstract
Supplementary materials for the paper "Embedding qualitative data in LLM semantic space: A conceptual history, R tutorial, and empirical calibration" (Muta, 2026). This project holds the code, the archived embedding matrices, and the results files from which every statistic reported in the paper can be recomputed. The manuscript itself is on PsyArXiv rather than here, so that it has one version history rather than two. The paper asks whether commercial large-language-model embedding APIs can serve as a measuring instrument for survey data that quantitative analysis usually discards: nominal category labels and open-ended text. No text is generated and no respondents are simulated. Structure is fixed from theory and tested confirmatorily, never estimated from the embeddings. Eight pre-specified demonstrations span four psychological instruments, occupational labels, semantic-differential terms, and respondent-written narratives, across three providers (Gemini, Voyage, OpenAI) and, where a validated translation exists, two languages. Six further analyses, added after the confirmatory grid, test specific claims from the generative-psychometrics literature against response data. Contents: 30 R scripts; 23 archived embedding matrices; 42 results files; the four published figures; and qualembed, the R package (development continues at github.com/PsycholoStudio/qualembed; the copy here is a frozen snapshot of the version that produced these analyses). Reproducibility note. Commercial embedding models are versioned products and may be retired, so reproducibility attaches to the archived matrices rather than to the APIs. A verification script checks every number in the manuscript against the results files without any API access or API key. Two deliberate omissions are documented in the README. The working embedding cache is not deposited, because it is keyed by the text embedded and would therefore contain participants' own sentences; an embedding vector does not protect the text it came from. And the Japanese renderings of the Big Five and Schwartz materials that appeared in an earlier version of this work were withdrawn in full, having been produced during drafting rather than taken from a validated published translation; no result here rests on them. All analyses run in R. Code and package: GPL-3. Text and figures: CC-BY 4.0.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Generative AI as an epistemic mirror: six cognitive operations in future-oriented reasoning — replication packageOpen MIND · 2026
- Comparing LLM and Human Expert Coding in Qualitative Research: A Case Study on Emotional IntelligenceData · 2026
- Reproducibility is not construct validity: LLM measurement of institutionally situated communicationarXiv · 2026
- LLMs as survey respondents: Comparison to simple semantic baselinesarXiv · 2026
- Validating LLM-Generated Synthetic Survey Samples: A Use-Dependent Multi-Dimensional Framework for Social-Science ApplicationsarXiv · 2026
- Large language models for thematic analysis in healthcare research: A blinded mixed-methods comparison with human analystsPLOS Digital Health · 2026