Skip to contents

Real 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 the words written wholly in letters the reference attests, which the generators substitute among, so the eligible pool can be smaller than the request; the pipeline's shortfall policy then decides whether that errors. A pool word in a logographic script is refused. reference_words (the full lexicon) supplies the letters, 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.

Usage

build_lexdec_stimuli(
  pool,
  n,
  reference_words = NULL,
  method = "letter_substitution",
  exclude = NULL
)

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

exclude

Optional character vector of further known word forms a pseudoword must not equal, which the reference may lack; see generate_pseudowords().

Value

A stimulus data frame with target, condition and set columns. base gives the word each pseudoword was made from, a word's own form for a word, and edit_distance the Levenshtein distance from target to base, 0 for a word.