Experiment - Edit distance (Levenshtein)
Problem:You want to measure how different two words are by counting the minimum number of changes needed to turn one word into the other. This is called the Levenshtein edit distance.
Current Metrics:The current implementation calculates edit distance correctly but is slow for long words, taking over 5 seconds for words longer than 100 characters.
Issue:The current code uses a simple recursive method without optimization, causing slow performance and making it impractical for larger inputs.