Skip to main content

Module suggest

Module suggest 

Source
Expand description

Edit-distance based suggestions for typo correction.

Provides Levenshtein distance computation and closest-match lookup for generating “Did you mean …?” hints in error messages.

Functions§

closest_match
Returns the closest match to input from candidates, if within max_distance edit distance.