Q-Tips For R
Distance Between Sounds
library(stringdist)
> stringdist("ham", "jam", method ="soundex")
[1] 1
> stringdist("ham", "banana", method ="soundex")
[1] 1
This is pretty bad. Character-wise cosine distance or some other distance based on Soundex codes may be