Modeling intelligibility and perceived linguistic distances by means of the Levenshtein algorithm