refactored levenshtein visualization