in reply to Tuning an approximate match to prefer closer lengths
Just give insertions & deletions a (much) higher penalty than character discrepancies. The modified Levenshtein algorithm will give the optimal distance based on those penalties, and you can find the closest among a list of candidates.
blokhead
|
|---|