Skip to main navigation Skip to search Skip to main content

Talk to your data: Introducing text embedding similarity analysis (TESA) in psychological research

Research output: Contribution to journal › Article › peer-review

Abstract

While qualitative research plays a vital role in understanding complex phenomena, it lends itself poorly to testing formal hypotheses due to its inability to fit statistical models to text data. Approaches that are traditionally used to quantify text data (e.g., content analysis) are generally time-consuming, prone to researcher bias, and neglect a substantial amount of potentially important semantic context. Although novel approaches have been proposed, these typically require large amounts of text data and tend to be inductive in nature. To enable researchers to ask hypothesis-based and open-ended questions from one's text data, the current study proposes a novel retrieval augmented generation (RAG)-based approach (called text embedding similarity analysis, TESA) that transforms a hypothesis into two specific search terms: a population (or sample) and a variable of interest. Using pretrained large language models (LLM), we extract the semantic embedding of the search terms and text data and use cosine similarity to match search terms. This allows hypothesis testing by assessing the alignment between the distribution of similarity scores for a variable of interest with the expectation for the population.

Original languageEnglish
Article number179
Number of pages19
JournalBehavior Research Methods
Volume57
Issue number7
DOIs
Publication statusPublished - 28 May 2025

Bibliographical note

© 2025. The Psychonomic Society, Inc.

Keywords

  • Humans
  • Semantics
  • Psychology/methods
  • Qualitative Research

Fingerprint

Dive into the research topics of 'Talk to your data: Introducing text embedding similarity analysis (TESA) in psychological research'. Together they form a unique fingerprint.

Cite this