in reply to Closest matches from string array

you could calculate the "similarity" using String::Similarity.