- lower: Lean.FuzzyMatching.CharType
- upper: Lean.FuzzyMatching.CharType
- separator: Lean.FuzzyMatching.CharType
Represents the type of a single character.
Instances For
- head: Lean.FuzzyMatching.CharRole
- tail: Lean.FuzzyMatching.CharRole
- separator: Lean.FuzzyMatching.CharRole
Represents the role of a character inside a word.
Instances For
@[inline]
def
Lean.FuzzyMatching.charRole
(prev? : Option Lean.FuzzyMatching.CharType)
(curr : Lean.FuzzyMatching.CharType)
(next? : Option Lean.FuzzyMatching.CharType)
:
Instances For
def
Lean.FuzzyMatching.fuzzyMatch
(pattern : String)
(word : String)
(threshold : optParam Float 0.2)
:
Match the given pattern with the given word using a fuzzy matching
algorithm. Return false
if no match was found or the found match received a
score below the given threshold.