Lexical optimisation and hardware-timed experiment generation. Twin, feature-parity packages that select stimuli matched across several lexical dimensions from a corpus in any of dozens of languages, counterbalance them, and generate the experiment that presents them for PsychoPy, OpenSesame or the browser. Under the deterministic matching methods, which include the default, the R and Python engines produce byte-identical materials.
install.packages("lexsync"), or take the development version from this repository
with remotes::install_github("pablobernabeu/lexsync", subdir = "R_workflow").
pip install lexsync, adding the corpora or experiment extra in
brackets when you need the wordfreq connector or the hardware playback dependencies.
Every worked design in the repository ships as a browser experiment, written by the same pipeline that emits the PsychoPy and OpenSesame scripts and rendered from the same declarative event list. These are build artefacts rather than mock-ups: each is a single HTML file carrying its own trial list, so it runs by being opened. Two contrasting paradigms are below, and all twenty-two are listed together, among them related versus unrelated priming, cued categorisation, a lexical decision carrying practice and filler blocks, and a Mandarin Chinese frequency contrast on a logographic script.
The two point-and-click applications work differently and are not published here. The Shiny and Streamlit front-ends call the R and Python engines directly, so each one needs a local install and a server of its own. See apps/README.md for how to launch them.