无法找到更接近数据库php中的数据的值

I want to make a translator that translates Hindi, Tamil texts to English. I came up with a script which is giving some results but I am unable to translate a particular type of user value. I want to compare user input with the value in database. I am unable to do this kind of comparison:

e.g user input = whhhere peopples goes? database value = where peoples goes?

I want to handle user input as, if user enter more characters which are not in my database it should convert it into the required input