DidYouMean
A utility object to support "did you mean" hinting
Attributes
- Graph
-
- Supertypes
- Self type
-
DidYouMean.type
Members list
Value members
Concrete methods
The Levenshtein distance between two strings
The Levenshtein distance between two strings
Attributes
The name, symbol, and prefix type of all non-synthetic declarations that are defined or imported in some enclosing scope and that are of the same type/term kind as the missing member.
The name, symbol, and prefix type of all non-synthetic declarations that are defined or imported in some enclosing scope and that are of the same type/term kind as the missing member.
Attributes
The names of all non-synthetic, non-private members of site
that are of the same type/term kind as the missing member.
The names of all non-synthetic, non-private members of site
that are of the same type/term kind as the missing member.
Attributes
Extensions
Extensions
List of possible candidate names with their Levenstein distances to the name from
of the missing member.
List of possible candidate names with their Levenstein distances to the name from
of the missing member.
Value parameters
- maxDist
-
Maximal number of differences to be considered for a hint A distance qualifies if it is at most
maxDist
, shorter than the lengths of both the candidate name and the missing member name and not greater than half the average of those lengths.