1

I am trying to build an android application. In one of the screens the user can type something in a search bar and I have to take same action for different spellings of the same word.

For eg: User can type "elephant" or "alephant" or "elefant". I have to take same action for all these three words.

Is there any library that identifies these words as similar ones ?

Nishanth
  • 1,801
  • 21
  • 25

3 Answers3

1

It looks like you can use sound ex to get some phonetic distance between strings : The most efficient way to implement a phonetic search

Community
  • 1
  • 1
Snicolas
  • 37,840
  • 15
  • 114
  • 173
0

Maybe the spell checker could : http://developer.android.com/guide/topics/text/spell-checker-framework.html

That's a different approach but quite close and more flexible.

Snicolas
  • 37,840
  • 15
  • 114
  • 173
  • Thank you . This would be of great help in english. But I have to identify similar sounding words in other languages like hindi etc. – Nishanth Nov 04 '12 at 00:04
  • phonetic is quite language dependent actually. There won't be anything like a general solution that can be applied to hindi, english and french. – Snicolas Nov 04 '12 at 00:07
0

Double Metaphone and Metaphone3 are excellent solutions to identify phonetically similar words. I used Double Metaphone in my case, simply because it is open source and the java implementation is available. It works very well.

Java implementation for Metaphone & Double Metaphone

Metaphone 3 is supposedly better but I don't think there is free implementation available

Nishanth
  • 1,801
  • 21
  • 25