Learn R Programming

phonics (version 1.1.0)

rogerroot: Roger Root Name Coding Procedure

Description

Provides the Roger Root name coding system

Usage

rogerroot(word, maxCodeLen = 5)

Arguments

word

string or vector of strings to encode

maxCodeLen

maximum length of the resulting encodings, in characters

Value

the Roger Root encoded character vector

Caveats

The rogerroot 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 rogerroot function phentically encodes the given string using the Roger Root algorithm. The variable word is a string or vector of strings to encode.

The variable maxCodeLen is the limit on how long the returned code should be. The default is 5.

References

Robert L. Taft, Name search techniques, Bureau of Systems Development, Albany, New York, 1970.

See Also

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

Examples

Run this code
# NOT RUN {
rogerroot("William")
rogerroot(c("Peter", "Peady"))
rogerroot("Stevenson")

# }

Run the code above in your browser using DataLab