I have following working Java code for searching for a word against a list of words and it works perfectly and as expected:
public class Levenshtein {
privat
This really is an open-ended question, but I would suggest an alternative approach which uses for example the Smith-Waterman algorithm as described in this SO.
Another (more light-weight) solution would be to use other distance/similarity metrics from NLP (e.g., Cosine similarity or Damerau–Levenshtein distance).