class pclTextBox::Phonetic

sys::Obj
  pclTextBox::Phonetic

Algorithms used primarily for matching names based on phonetic similarity.

Each phonetic algorithm converts a word into a representation of its sound using letters and/or numbers to represent different sound groups.

daitchMokotoff

static Str daitchMokotoff(Str word)

Created to improve soundex algorithm for Yiddish and Slavic names. Output is a six-digit string of numbers.

This implementation follows the definition at: https://www.jewishgen.org/InfoFiles/soundex.html

(Note that it is possible for a name to have more than one encoding. This function computes multiple encodings, but only returns one.)

metaphone

static Str metaphone(Str word)

Transforms words using a set of English pronunciation rules.

This implementation follows the definition at: http://aspell.net/metaphone/metaphone-kuhn.txt

refinedSoundex

static Str refinedSoundex(Str word)

An improved version of the Russell-Soundex algorithm, with a greater breakdown of the consonants into groups, and allowing a longer final string.

Only defined for words consisting of letters in English a-z alphabet.

russellSoundex

static Str russellSoundex(Str word)

The earliest soundex-style algorithm. Separates letters into numbered groups, and returns a code consisting of the initial letter followed by three numbers.

Only defined for words consisting of letters in English a-z alphabet.