StringTools - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Names and Strings : StringTools Package : String Homology Routines : StringTools/Metaphone

StringTools

  

Metaphone

  

Metaphone function

 

Calling Sequence

Parameters

Description

Examples

References

Calling Sequence

Metaphone( s )

Parameters

s

-

Maple string

Description

• 

The Metaphone(s) command implements the Metaphone algorithm.

  

The metaphone of a name is a phonetic hash of the consonant sounds in the name. It is designed to be an improvement on the traditional soundex algorithm. Metaphones have the property that words, which are pronounced similarly, produce the same metaphone and can thus be used to simplify searches in databases where the pronunciation but not the spelling is known.

• 

While the soundex algorithm hashes words to a four character string consisting of a letter followed by three digits, the metaphone of a word produces a varying length string consisting entirely of consonants, with the possible exception of a leading vowel.

Examples

withStringTools:

MetaphoneJames

JM

(1)

MetaphoneBarb

BRB

(2)

MetaphoneWhitting

WTNK

(3)

MetaphoneGauss

KS

(4)

MetaphoneGoethe

K0

(5)

MetaphoneGhosh

KX

(6)

MetaphoneKline

KLN

(7)

MetaphoneCline

KLN

(8)

MetaphoneVallis

FL

(9)

MetaphoneFallis

FL

(10)

References

  

Philips, Lawrence. "Hanging on the Metaphone." Computer Language. December 1990, pp. 38-44.

See Also

string

StringTools

StringTools[Soundex]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam