Soundex - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


StringTools

  

Soundex

  

implements the classical Soundex algorithm

 

Calling Sequence

Parameters

Description

Examples

References

Calling Sequence

Soundex( s )

Parameters

s

-

Maple string

Description

• 

The Soundex(s) command implements the classical Soundex algorithm.

  

The Soundex algorithm is intended to hash words into a small space by using a model which approximates the sound of the word when spoken by an English speaker.  Each word is reduced to a four character string (a Soundex key), where the first character is an uppercase letter and the remaining three characters are digits. Soundex keys have the property that words, which are pronounced similarly, produce the same soundex key and can thus be used to simplify searches in databases where the pronunciation but not the spelling is known.

• 

All of the StringTools package commands treat strings as (null-terminated) sequences of 8-bit (ASCII) characters.  Thus, there is no support for multibyte character encodings, such as unicode encodings.

Examples

withStringTools:

SoundexJames

J520

(1)

SoundexBarb

B610

(2)

SoundexGauss

G200

(3)

SoundexGoethe

G300

(4)

SoundexGhosh

G200

(5)

SoundexKline

K450

(6)

SoundexCline

C450

(7)

SoundexVallis

V420

(8)

SoundexFallis

F420

(9)

References

  

Knuth, Donald. The Art of Computer Programming, Volume 3: Sorting and Searching. Reading, Massachusetts: Addison-Wesley, 1973, pp. 391-392.

See Also

string

StringTools

StringTools[Metaphone]