After searching in Google and StackOverflow I couldn't find any resource talking about comparison of strings proximity in Java, I only find results about différence between == and equals...
Do one of you know any library allowing to compare the "proximity" between two strings and giving a percentage of proximity ?
Example : car and bar are very close, chicken and dog are very different
The idea is to be able to compare for example a city written by a user with the cities I have in my database to avoid duplicate data. For example if the user writes "NewYork", i could tell him "Do you mean "New-York" ?
Thanks a lot :)