private static IDictionary <Token, KnownPerson> GetKnownPersons(IEnumerable <Token> tokens) { var results = new Dictionary <Token, KnownPerson>(); foreach (var token in tokens) { var knownPerson = KnownPersonSearcher.Search(Person.Parse(token.LowerText)); if (knownPerson != null) { results.Add(token, knownPerson); } } return(results); }
private static bool CheckIsNominativeKnownLastName(string lastName) { return(KnownPersonSearcher.SearchByLastName(lastName).Any(r => r.Case == @"Nominative")); }