Learn R Programming

phonics (version 1.1.0)

phonex: Phonex Name Coding

Description

The Phonex name coding procedure.

Usage

phonex(word, maxCodeLen = 4)

Arguments

word

string or vector of strings to encode

maxCodeLen

maximum length of the resulting encodings, in characters

Value

the Phonex encoded character vector

Caveats

The phonex algorithm is only defined for inputs over the standard English alphabet, i.e., "A-Z." For inputs outside this range, the output is undefined.

Details

The variable word is the name to be encoded. The variable maxCodeLen is the limit on how long the returned name code should be. The default is 4.

References

A.J. Lait and Brian Randell. "An assessment of name matching algorithms." Technical Report Series-University of Newcastle Upon Tyne Computing Science (1996).

See Also

Other phonics: caverphone, cologne, lein, metaphone, mra_encode, nysiis, onca, rogerroot, soundex, statcan

Examples

Run this code
# NOT RUN {
phonex("William")
phonex(c("Peter", "Peady"))
phonex("Stevenson", maxCodeLen = 8)

# }

Run the code above in your browser using DataLab