Expand description
“Did you mean …?” suggestions for unrecognised names: one edit-distance rule shared by every diagnostic that names a closest candidate (CLI parameters and flags, wrapper names).
Functions§
- closest_
match - The candidate closest to
queryby Levenshtein edit distance, orNonewhen even the closest is more than half the query’s length away (at least 2 edits are always allowed), since beyond that the suggestion is noise.