get_close_matches
Finds and returns the closest matches to a given word from a list of possibilities using similarity scoring, with customizable cutoff and maximum matches. Useful for text comparisons and error correction.
Instructions
Use SequenceMatcher to return list of the best "good enough" matches.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
cutoff | No | ||
n | No | ||
possibilities | Yes | ||
word | Yes |