A length-matched pseudoword for each base word (byte-order processing)
Source:R/generation.R
generate_pseudowords.RdA length-matched pseudoword for each base word (byte-order processing)
Arguments
- base_words
Character vector of words to derive pseudowords from.
- reference_words
Character vector (typically the full lexicon) that supplies the bigram statistics and the real word forms to avoid.
- exclude
Optional character vector of further word forms no pseudoword may equal, such as low-frequency words the reference lacks. They are trimmed, lower-cased and put in Unicode NFC, as a lexicon's words are, and play no part in the bigram statistics.