spelling: corrupt spelling of a slogan

make_mistakeR Documentation

corrupt spelling of a slogan

Description

As Brian is rather poor at Latin, he will make random spelling errors when on his mission.

Usage

make_mistake(string)

pick_position(string, positions)

Arguments

string

string to make errors in

positions

number of positions to do typos at; taken from goBrian

Details

These are internal functions used by goBrian.

Value

make_mistake returns a slogan with spelling error(s) introduced. pick_position returns an integer vector.

Functions

  • make_mistake: At the moment only does substitutions; removing or adding characters is not supported. All mistakes are in lowercase at the moment.

  • pick_position: Randomly picks positions where mistakes will be made. It runs recursively until all picked positions correspond to letters. The first letter will always be correct.


olobiolo/Rdlazer documentation built on Aug. 6, 2022, 11:37 a.m.