Assemble a word-vs-pseudoword lexical-decision set from a candidate pool
Source:R/generation.R
build_lexdec_stimuli.RdReal words are drawn by an even spread across the byte-ordered pool, then a
length-matched pseudoword is generated for each. The pool is first filtered to
lower-case a-z forms, the only ones the pseudoword generators are defined for,
so the eligible pool can be smaller than the request; the pipeline's shortfall
policy then decides whether that errors. reference_words (the full
lexicon) supplies the bigram statistics and the real-word list a pseudoword
must avoid. The presented string is the target column; conditions are word
and pseudoword and set pairs them.
Arguments
- pool
Data frame of candidate words, e.g. from
build_pool().- n
Number of real words to select.
- reference_words
Character vector supplying the bigram statistics and the real word forms a pseudoword must avoid; defaults to the pool's words.
- method
Pseudoword generator:
"letter_substitution"(default) or"subsyllabic"(Wuggy-style; Keuleers & Brysbaert, 2010).