PsyLingLLM: Controlled Psycholinguistic Experiments with Large Language Models

Runs controlled psycholinguistic, psychological, cognitive, and educational experiments with large language models. Registry-based configuration separates models, providers, and application programming interfaces so that compatible services can share experimental designs. Functions support randomized and factorial trials, multi-turn conversations, response and reasoning capture, timing and token measurements, and structured result export. For methodological context on using language models as experimental participants, see Dillion et al. (2023) <doi:10.1016/j.tics.2023.04.008>.

Version: 0.4.0
Depends: R (≥ 4.0)
Imports: curl, writexl, dplyr (≥ 1.1.0), tibble (≥ 3.2.0), jsonlite (≥ 1.8.0), magrittr, yaml, readr, readxl, openxlsx, stringr, stats, utils, stringi
Suggests: jsonvalidate, testthat (≥ 3.0.0), withr
Published: 2026-11-11
DOI: 10.32614/CRAN.package.PsyLingLLM (may not be active yet)
Author: Han Ming [aut, cre]
Maintainer: Han Ming <hanmingpsy at gmail.com>
BugReports: https://github.com/HanMingPsy/PsyLingLLM-R/issues
License: MIT + file LICENSE
URL: https://github.com/HanMingPsy/PsyLingLLM-R
NeedsCompilation: no
Language: en-US
Materials: README, NEWS
CRAN checks: PsyLingLLM results

Documentation:

Reference manual: PsyLingLLM.html , PsyLingLLM.pdf

Downloads:

Package source: PsyLingLLM_0.4.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): PsyLingLLM_0.4.0.tgz, r-oldrel (arm64): PsyLingLLM_0.4.0.tgz, r-release (x86_64): not available, r-oldrel (x86_64): PsyLingLLM_0.4.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=PsyLingLLM to link to this page.