The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

‘baserater’ package

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).

Installation

To install the latest development version from GitHub, run:

# install.packages("pak")  # if not yet installed
pak::pak("Jeremie-Beucler/baserater")

# Alternatively, install via devtools
# install.packages("devtools")  # if not yet installed
devtools::install_github("Jeremie-Beucler/baserater")

Citation

Please cite the package as:

Beucler, J. (2025). baserater: An R package using large language models to estimate belief strength in reasoning [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.15449191

Note: this is a temporary repository doi, until the actual release on CRAN is available.

Package overview



Schematic overview of the ‘baserater’ package.

License

MIT

Inference Provider Resources

The baserater package can connect to various inference providers such as ‘Together AI’, ‘Hugging Face’ Inference, ‘Fireworks’, and ‘Replicate’.
These platforms host or serve large language models and allow you to query them through a standard style chat/completions API.

Here are some useful resources to get started:

Before generating new scores using the generate_typicality() function, make sure you have completed the following setup steps:

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.