Learn R Programming

alineR (version 1.1.4)

decode.ALINE: Decode ALINE ASCII output

Description

Decode aligned ALINE ASCII output into the original IPA characters while indicating the optimal alignment with vertical bars ('|').

Usage

decode.ALINE(x, y, m1 = NULL, m2 = NULL)

Arguments

x

A vector containing the original IPA word.

y

A vector containing the aligned characters in ALINE notation.

m1

A vector of IPA characters to encode. See map() for details.

m2

A vector of ASCII ALINE encodings. See map() for detail.

Value

word

The alignment of the word in the IPA notation.

Warning

The ALINE encoding scheme only accepts a single lower case character followed by one or more upper case characters. For example, "dD" can be accepted but "dd" can not.

See Also

encode.ALINE

Examples

Run this code
# NOT RUN {
x<-intToUtf8(c(611,117,108,108,97))
y<-"|         gS       u       l       l       a       |  "
decode.ALINE(x,y)

# user-specified mapping. Should be consistent with encode.ALINE() function
x<-intToUtf8(c(418,109,108,97,116,952))
y<-"|  o   m   l   a   t   tS  |  "
decode.ALINE(x,y,m1=intToUtf8(418), m2="o")
# }

Run the code above in your browser using DataLab