tessl install tessl/pypi-python-levenshtein@0.27.0Python compatibility wrapper for computing string edit distances and similarities using fast Levenshtein algorithms.
Agent Success
Agent success rate when using this tile
88%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.38x
Baseline
Agent success rate without this tile
64%
Build a spell checking utility that finds the closest matching words from a dictionary for potentially misspelled input words.
@generates
def find_closest_match(word: str, dictionary: list[str]) -> tuple[str, int]:
"""
Finds the closest matching word from a dictionary.
Args:
word: The potentially misspelled word to check
dictionary: List of valid words to compare against
Returns:
A tuple containing (closest_word, distance) where closest_word
is the best match from the dictionary and distance is the
minimum edit distance found
"""
passProvides string edit distance calculation support.