do_pho_replacement
replace a string with its phonetic error.
do_pho_replacement(
s,
where,
orgpat,
newpat,
precond,
postcond,
existcond,
startcond
)
A string.
A string. The location of the pat, it can be one of: 'ALL','START','END','MIDDLE'.
A string. The original pat.
A string. The new pat.
A string. Pre-condition (default 'None') can be 'V' for vowel or 'C' for consonant.
A string. Post-condition (default 'None') can be 'V' for vowel or 'C' for consonant.
A string. Exist-condition (default 'None').
A string. Start-condition (default 'ALL').
It returns a new pat.