do_pho_replacement: Replace a string with its phonetic error.

Description Usage Arguments Value

View source: R/make_pho_error.R

Description

do_pho_replacement replace a string with its phonetic error.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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.


sdglinkage documentation built on April 27, 2020, 5:09 p.m.