Learn R Programming

sdglinkage (version 0.1.0)

do_pho_replacement: Replace a string with its phonetic error.

Description

do_pho_replacement replace a string with its phonetic error.

Usage

do_pho_replacement(
  s,
  where,
  orgpat,
  newpat,
  precond,
  postcond,
  existcond,
  startcond
)

Arguments

s

A string.

where

A string. The location of the pat, it can be one of: 'ALL','START','END','MIDDLE'.

orgpat

A string. The original pat.

newpat

A string. The new pat.

precond

A string. Pre-condition (default 'None') can be 'V' for vowel or 'C' for consonant.

postcond

A string. Post-condition (default 'None') can be 'V' for vowel or 'C' for consonant.

existcond

A string. Exist-condition (default 'None').

startcond

A string. Start-condition (default 'ALL').

Value

It returns a new pat.