lexsync: Lexical Optimisation and Hardware-Timed Experiment Generation

A cross-platform toolkit for lexical-corpus access (bundled English, Spanish and Mandarin lexica and a registry of citable corpora), the matching of stimuli on several dimensions at once, deterministic pseudoword generation, counterbalancing and the automated generation of experiments from a declarative trial-event model, for 'PsychoPy', 'OpenSesame' and the browser ('jsPsych'). The laboratory targets send electroencephalography onset triggers on the screen refresh that shows the stimulus. Several paradigms are supported (factorial word contrasts, lexical decision, priming, self-paced reading and cued categorisation), and each design is accompanied by a materials datasheet, readable by machines and people, for reproducibility. A 'Python' package of the same name has the same structure and functions.

Version: 0.2.0
Depends: R (≥ 4.1.0)
Imports: readr (≥ 2.0.0), yaml, stringdist, stringi, jsonlite (≥ 1.8.7), digest, stats, tools, utils
Suggests: testthat (≥ 3.1.8), knitr, rmarkdown, spelling, clue, shiny, bslib, DT, zip
Published: 2026-11-22
DOI: 10.32614/CRAN.package.lexsync
Author: Pablo Bernabeu ORCID iD [aut, cre]
Maintainer: Pablo Bernabeu <pcbernabeu at gmail.com>
BugReports: https://github.com/pablobernabeu/lexsync/issues
License: MIT + file LICENSE
Copyright: The MIT licence covers the source code only. The example lexica in inst/extdata are derived from third-party data and are distributed under CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/. The terms and the attribution they require are in the COPYRIGHTS file installed with the package (inst/COPYRIGHTS in the sources).
lexsync copyright details
URL: https://github.com/pablobernabeu/lexsync, https://pablobernabeu.github.io/lexsync/r/
NeedsCompilation: no
Language: en-GB
Citation: lexsync citation info
Materials: README, NEWS
CRAN checks: lexsync results

Documentation:

Reference manual: lexsync.html , lexsync.pdf
Vignettes: About (source, R code)
Experiments, paradigms and EEG triggers (source, R code)
Getting started with lexsync (source, R code)
Matching, dimensions and designs (source, R code)
References (source, R code)
Reproducibility, parity and the materials datasheet (source, R code)
The app (source, R code)

Downloads:

Package source: lexsync_0.2.0.tar.gz
Windows binaries: r-devel: lexsync_0.1.1.zip, r-release: lexsync_0.1.1.zip, r-oldrel: lexsync_0.1.1.zip
macOS binaries: r-release (arm64): lexsync_0.1.1.tgz, r-oldrel (arm64): lexsync_0.1.1.tgz, r-release (x86_64): lexsync_0.1.1.tgz, r-oldrel (x86_64): lexsync_0.1.1.tgz
Old sources: lexsync archive

Linking:

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