Manuscript Offprint

arXiv:2610.37494

semanticfa: An R Package for Response-Free Semantic Factor Analysis of Psychometric Scales

Devon Yanitski, Chris Westbury

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The items of a reflective psychometric scale can be read as a proposal about a construct's structure. Language models make that proposal measurable by converting each item into an embedding, a list of numbers, similar for similar meanings. We introduce semanticfa, an R package for semantic factor analysis, which factors item-embedding similarities. It also interprets factors, flags redundant items, builds short forms, and screens new items. A worked example analyzes the 50-item International Personality Item Pool Big-Five Factor Markers, embedded with Qwen3-Embedding-8B, and compares the results with a factor analysis of 874,434 respondents. Retention criteria tied between five and six factors, and the tie rule kept five. Three corresponded mainly to single domains, and two blended most Extraversion items with five Agreeableness items. Each factor's congruence with its best-matching human factor (1 = identical) ranged from .92 for Openness to .52 for Agreeableness. Item pairs more similar in meaning tended to be answered more alike (r = .46 with raw responses), but same-domain reverse-keyed opposites, answered oppositely, were about as similar as cross-domain pairs (.58 vs. .57). Sign-flipping reverse-keyed items' embeddings did not improve agreement with raw responses and worsened it with reverse-scored ones. With five factors, a 25-item short form matched the domains better than all 200 random five-per-domain sets, but parallel analysis kept only three. We propose semantic-behavioral coherence, the agreement between semantic and response structures, as a measurable property of a scale, given an embedding model. Semantic factor analysis complements, and does not replace, response-based factor analysis.

Keywords: semantic factor analysis, language models, embeddings, construct validity, scale development, R package

1 Introduction

Much of what psychologists measure, from personality traits and attitudes to symptoms of anxiety and depression, is measured through language (Hommel & Arslan, 2025; Kambeitz et al., 2025). The instruments are scales: sets of short statements, called items, that respondents rate for how well each one describes them, such as “I am the life of the party.” for extraversion. Because the attributes these scales target cannot be observed directly, psychologists treat them as constructs. A construct is a theoretical attribute whose standing is inferred from the pattern of people’s answers rather than observed. The standard tool for studying that pattern is factor analysis. It identifies clusters of items whose responses correlate more strongly with one another than with the rest of the scale, and it treats each cluster as the expression of one underlying dimension, called a factor. Each item’s loading is a number that expresses how strongly the item reflects a factor. A scale is considered well built when its items load on the factors that correspond to the constructs they were written to measure.

Factor analysis is almost always run on responses. Before anyone answers a scale, however, its items already exist as sentences, and what those sentences mean shapes much of the structure that factor analysis later finds in the answers. The structure of a scale, in this sense, is the number of factors it has and which items load on each. Items that describe similar behavior in similar words tend to be answered alike, in part because a respondent who endorses one statement tends to endorse another that says much the same thing (Arnulf et al., 2014; Hommel & Arslan, 2025). Semantic factor analysis (SFA) builds on that observation by estimating the structure of a scale from its wording alone. The R package semanticfa (Yanitski & Westbury, 2026) implements SFA, from the item texts to the interpreted factors.

What makes the wording measurable is a kind of language model called a sentence-embedding model. Trained on very large collections of text, such a model learns to represent any sentence as a long list of numbers (4,096 for the model used in this paper), which are the coordinates of a point in a space with that many dimensions. That list is the sentence's embedding. Training arranges the space so that sentences with similar meanings end up close together, whatever their exact wording (Reimers & Gurevych, 2019). The embeddings of "I am the life of the party." and "I talk to a lot of different people at parties." therefore lie near each other, while the embeddings of sentences on unrelated topics lie far apart. The similarity of two items can then be expressed as the cosine similarity of their embeddings. If each embedding is drawn as an arrow from the origin of the space to its point, cosine similarity is the cosine of the angle between the two arrows. It approaches 1 when two statements say nearly the same thing and approaches 0 when their meanings are unrelated. In practice, the embeddings from such models all share some similarity, as the internal

Devon Yanitski i◯\textcircled{i} https://orcid.org/0009-0006-1568-3387

Chris Westbury i◯\textcircled{i} https://orcid.org/0000-0001-7788-0278

This work received no external funding. Computing resources were provided by the Digital Research Alliance of Canada. The authors have no competing interests to declare.

Correspondence concerning this article should be addressed to Devon Yanitski, Department of Psychology, University of Alberta, P-217 Biological Sciences Building, Edmonton, Alberta T6G 2E9, Canada.

E-mail: dyanitsk@ualberta.ca word representations of contextual language models commonly do (Ethayarajh, 2019), so even unrelated statements score well above 0. This point returns in the subsection on reverse-keyed items. Computing it for every pair of items yields a matrix with the same form as the correlation matrix on which factor analysis normally operates. SFA is factor analysis of that similarity matrix, so no respondent is needed at any stage.

The semanticfa package organizes the analysis into four stages: building the similarity matrix from item embeddings, deciding how many factors it supports, extracting the factors and computing their diagnostics, and interpreting each factor by relating the embeddings of its items to the embeddings of candidate construct names. Beyond these stages, the package offers refinement tools that use a fitted model to flag redundant items, propose shorter forms, and screen newly written items before they are administered.

SFA does not replace factor analysis of responses. It recovers a second structure over the same items, the semantic structure, which is built from what the items mean rather than from how people answer them. Where the semantic structure and the structure found in responses agree, the items that are similar in meaning are also the items that people answer alike. Where the two diverge, the divergence identifies the items that wording and responses group differently and can suggest why. We call the degree of agreement between the two structures semantic-behavioral coherence, because the structure found in responses reflects how people behave when they answer the items. In the worked example, that behavioral structure, which we also call the response structure, is the factor structure of the human responses, and the Results call its factors the human factors.

The Introduction develops these ideas in six subsections. It begins with the evidence that item wording predicts how people respond, and then explains how language models turn the meaning of a sentence into numbers, the step on which both that evidence and SFA depend. Once embeddings have been explained, the third subsection considers what the semantic structure of a scale represents and how it relates to the structure found in responses. The fourth addresses the first practical difficulty any user meets, which concerns items worded so that agreeing with them indicates less of the construct, because how an analysis handles these items changes its results. The last two subsections turn from the method to its uses. The fifth describes what semantic structure can do before any data are collected, and the sixth introduces the package together with the worked example that the rest of the paper follows.

References (100)

Couldn't load all references. Reload the page to try again.