Detect similar sounding words in Ruby
Posted
by JP
on Stack Overflow
See other posts from Stack Overflow
or by JP
Published on 2010-03-28T00:46:05Z
Indexed on
2010/03/28
0:53 UTC
Read the original article
Hit count: 275
I'm aware of SOUNDEX and (double) Metaphone, but these don't let me test for the similarity of words as a whole - for example "Hi" sounds very similar to "Bye", but both of these methods will mark them as completely different.
Are there any libraries in Ruby, or any methods you know of, that are capable of determining the similarity between two words? (Either a boolean is/isn't similar, or numerical 40% similar)
edit: Extra bonus points if there is an easy method to 'drop in' a different dialect or language!
© Stack Overflow or respective owner