double-metaphone |
| string
&optional extended-p | [Function] |
Purpose
Compute the primary and secondary Double Metaphone phonetic-code
strings of string.
Package :gbbopen-tools
Module :double-metaphone
Arguments and values
string | A string | |
extended-p | A generalized boolean (default is nil )
| |
primary-index | A string | |
secondary-index | A string |
Returns
One or two values: the primary and secondary phonetic-code strings.
If there is no secondary code for string, only the primary string is
returned.
Description
If extended-p is nil
, strict Double Metaphone encoding is used. If
extended-p is true, additional encoding rules that separate sounds are
used for “B” and “P,” for “D” and “T,” for “F” and “V,” and for
“S” and “Z.”
Examples
> (double-metaphone "testing") "TSTN" > (double-metaphone "Smith") "SM0" "XMT" > (double-metaphone "Schmidt") "XMT" "SMT" > (double-metaphone "batboy") "PTP" > (double-metaphone "batboy" 't) "BTB" > (double-metaphone "Barlow") "PRL" "PRLF" > (double-metaphone "Barlow" 't) "BRL" "BRLF" > (double-metaphone "buzz") "PS" > (double-metaphone "buzz" 't) "BZ" >
The GBBopen Project
double-metaphone |