get_transformation_typo: Encode typographic error to a string.

Description Usage Arguments Value Examples

View source: R/make_typo_error.R

Description

get_transformation_typo randomly assign a typographic error to a string. This function was converted from the Python code in Febrl (developed by Agus Pudjijono in 2008, refers to reference https://link.springer.com/chapter/10.1007/978-3-642-01307-2_47.

Usage

1

Arguments

string

A string.

Value

It returns the string with a randomly assgined typographic error following rules extracted in the typo_rules. It also comes with the change log of the transformation.

Examples

1
get_transformation_typo('how are you?')

haoyuanzhang1990/Synthetic-Data-Generation-for-Linkage-Methods-Development documentation built on April 21, 2020, 1 a.m.