soundex algorithm wanted

Gary Puckering garyp at cognos.UUCP
Wed Sep 10 05:01:56 AEST 1986


> > 
> Perhaps someone could just post the plain english description of
> soundex...
> 


Sure!  Be glad too...
   The Soundex function creates a phoenetic code based on an input

   key value according to the following rules:

	1) Always retain the first letter of the key.

	2) Drop out A, E, I, O, U, Y, W, and H.

	3) Assign the following numbers to the remaining similar-sounding
	   sets of letters:

		B, F, P, V = 1
		C, G, J, K, Q, S, X, Z = 2
		D, T =3
		L = 4
		M, N = 5
		R = 6

	4) If there are insufficient letters in the key to complete the
	   code, fill with zeroes.

	5) Drop adjacent equivalent letters (e.g. KELLY = K400).

	6) Drop out adjacent equivalents of the first letter (e.g. 
	   LLOYD = L300).  

-- 

-- 
Gary Puckering
COGNOS Incorporated
3755 Riverside Dr.
Ottawa, Ontario
Canada  K1G 3N3

Telephone: (613) 738-1440
Telex: 053-3341



More information about the Comp.sources.unix mailing list