Levenshtein distance: how to better handle words swapping positions? Levenshtein distance: how to better handle words swapping positions? php php