The array has zero's in it if there is no Soundex representation for the string.
soundexer
fn
char[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
str | String or InputRange to convert to Soundex representation. |
Returns
The four character array with the Soundex result in it.
See Also
Note
Only works well with English names.