protected override MatchingResult DoesInputMatchWord(IEnumerable<string> wordsToLookIn)
{
var bestMatch = MatchingResult.NoMatch;
foreach (var key in CurrentSearchKeys)
{
var result = LookForHitInWordCollection(wordsToLookIn, key);
switch (result)
{
case MatchingResult.NoMatch:
break;
case MatchingResult.WholeWordMatch:
return result;
case MatchingResult.StartOfWordMatch:
bestMatch = result;
break;
}
}
return bestMatch;
}