The baserater
package allows to:
It is designed to streamline the creation of base-rate neglect items for reasoning experiments. A base-rate neglect item typically involves two groups (e.g., “engineers” and “construction workers”) and a descriptive trait (e.g., “nerdy”). Participants are presented with statistical information (base-rates; e.g., “There are 995 construction workers and 5 engineers”) and stereotypical information (the descriptive trait). Their task is to decide the most likely group membership of an individual described by that trait. The “typicality rating” generated by large language models quantifies how strongly certain traits (e.g., “nerdy,” “kind”) or descriptions are (stereo)typically associated with specific groups (e.g., engineers, nurses). This allows researchers to precisely measure and control “stereotype strength”–the extent to which a given description is perceived as belonging more strongly to one group over another (e.g., the trait “nerdy” is typically seen as more characteristic of engineers than of construction workers).
The full documentation along with a tutorial is available at: https://jeremie-beucler.github.io/baserater/
To learn more about the theoretical framework and studies underlying the baserater package, see the paper: Using Large Language Models to Estimate Belief Strength in Reasoning (Beucler et al., forthcoming).
To install the latest development version from GitHub, run:
# install.packages("pak") # if not yet installed
pak::pak("Jeremie-Beucler/baserater")
Please cite the package as:
Beucler, J. (2025). baserater: An R package using large language models to estimate belief strength in reasoning (Version 0.1.0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.15449192
Hugging Face is a platform that provides access to a wide range of pre-trained models and datasets for natural language processing (NLP) tasks. The baserater
package uses Hugging Face’s API to generate typicality scores with various models. Here are some useful resources to get started with Hugging Face: