getHighestMatch function

PercentageMatch getHighestMatch (
  1. List<String> sentences,
  2. String toCheck,
  3. {bool ignoreArticles: false,
  4. bool matchCaseInsensitively: true,
  5. bool ignoreSpecialCharacters: true}

Returns the best match of toCheck against sentences.

If there are multiple matches with the same PercentageMatch.percentage, the first match will be returned. null will be returned if there are no matches.


PercentageMatch getHighestMatch(List<String> sentences, String toCheck,
        {bool ignoreArticles = false,
        bool matchCaseInsensitively = true,
        bool ignoreSpecialCharacters = true}) =>
    getHighestMatches(sentences, toCheck,
            ignoreArticles: ignoreArticles,
            matchCaseInsensitively: matchCaseInsensitively,
            ignoreSpecialCharacters: ignoreSpecialCharacters)