Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

soundex

You are here: irt.org | FOLDOC | soundex

<algorithm, text> An algorithm for encoding a word so that similar sounding words encode the same. The first letter is copied unchanged then subsequent letters are encoded as follows:

	bfpv	 -> "1"
	cgjkqsxz -> "2"
	dt	  	 -> "3"
	l	  	 -> "4"
	mn	  	 -> "5"
	r	  	 -> "6"

Other characters are ignored and repeated characters are encoded as though they were a single character. Encoding stops when the resulting string is four characters long, adding trailing "0"s if it is shorter. For example, "SMITH" or "SMYTHE" would both be encoded as "S530".

(1995-01-05)

Nearby terms: sound « Sound Blaster « sound card « soundex » soundness » source » source code

FOLDOC, Topics, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, ?, ALL

©2018 Martin Webb