keyboard_mash: Simulate keyboard mash (extra characters)

View source: R/keyboard.R

keyboard_mashR Documentation

Simulate keyboard mash (extra characters)

Description

Adds random adjacent characters to simulate accidental key presses.

Usage

keyboard_mash(word, n_extra = 3L)

Arguments

word

Character. Base word

n_extra

Integer. Number of extra characters to add

Value

Character. Word with extra characters

Examples

set.seed(456)
keyboard_mash("powerful")  # Might produce "powerfulnnz"

covfefe documentation built on Jan. 26, 2026, 5:08 p.m.