Learn R Programming

sdglinkage (version 0.1.0)

get_transformation_pho: Encode phonetic error to a string.

Description

get_transformation_pho randomly assign a Phonetic 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

get_transformation_pho(string)

Arguments

string

A string.

Value

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

Examples

Run this code
# NOT RUN {
get_transformation_pho('how are you?')

# }

Run the code above in your browser using DataLab