map {alineR}R Documentation

User-defined Mappings

Description

Allows user-defined mappings from UTF-8 IPA to ASCII ALINE. User mappings are given precedence over defaults when duplicates exist. See notes for usage and allowable ASCII encodings.

Usage

map(m1, m2)

Arguments

m1

a vector of IPA characters to encode.

m2

a vector of ALINE encodings.

Value

map

a dataframe with ALINE map that includes user-defined mappings.

Note

Valid ASCII ALINE encodings are defined in Kondrak 1999, pp. 19. Allowable lowercase letters are ["a"-"z"] and allowable uppercase modifiers are: _D_ental, palato-al_V_olar, retrofle_X_, _P_alatal, _S_pirant, _N_asal, _A_spirated, lo_H_ng, _F_ront, _C_entral. If an IPA character is mapped to an invalid ASCII code a warning is issued and the mapping is not accepted.

Author(s)

Sean Downey and Guowei Sun

References

Kondrak, G. (1999). Alignment of Phonetic Sequences. Technical Report CSRG-402. Department of Computer Science, University of Toronto.

See Also

ALINE.map

Examples

map(intToUtf8(418),"dX") #valid
map(intToUtf8(361),"dM") #invalid
map(intToUtf8(361),"dd") #invalid

[Package alineR version 1.1.4 Index]