soundexer

fnchar[4] soundexer(Range)(Range str) if (isInputRange!Range && isSomeChar!(ElementEncodingType!Range) && !isConvertibleToString!Range)

Soundex algorithm.

The Soundex algorithm converts a word into 4 characters based on how the word sounds phonetically. The idea is that two spellings that sound alike will have the same Soundex value, which means that Soundex can be used for fuzzy matching of names.

Parameters

strString or InputRange to convert to Soundex representation.

Returns

The four character array with the Soundex result in it.

The array has zero's in it if there is no Soundex representation for the string.

See Also

Wikipedia,

The Soundex Indexing System

soundex

Note

Only works well with English names.
fnchar[4] soundexer(Range)(auto ref Range str) if (isConvertibleToString!Range)

ditto