The Caverphone family of phonetic algorithms
caverphone(word, maxCodeLen = NULL, modified = FALSE)
string or vector of strings to encode
maximum length of the resulting encodings, in characters
if TRUE
, use the Caverphone 2 algorithm
the Caverphone encoded character vector
The variable maxCodeLen
is the limit on how long the returned
Caverphone code should be. The default is 6, unless modified
is set to TRUE
, then the default is 10.
The variable modified
directs caverphone
to use the
Caverphone2 method, instead of the original.
David Hood, "Caverphone: Phonetic matching algorithm," Technical Paper CTP060902, University of Otago, New Zealand, 2002.
David Hood, "Caverphone Revisited," Technical Paper CTP150804 University of Otago, New Zealand, 2004.
Other phonics: cologne
, lein
,
metaphone
, mra_encode
,
nysiis
, onca
,
phonex
, rogerroot
,
soundex
, statcan
# NOT RUN {
caverphone("William")
caverphone(c("Peter", "Peady"), modified = TRUE)
caverphone("Stevenson", maxCodeLen = 4)
# }
Run the code above in your browser using DataLab