DEV Community

Discussion on: [JS] Calculate phonetic similarity of two strings, any ideas?

Collapse
 
isaacdlyman profile image
Isaac Lyman

That's what Soundex is for. It phoneticizes the words so that if they are spelled similarly in Soundex, then they also sound similar in English. Then the Levenshtein distance algorithm becomes useful for exactly what you're trying to do.