public static NameRecognizer GetInstance() { if (_single == null) { _single = new NameRecognizer(); } return(_single); }
public List <string> GetNames(string contents) { string notaryName = GetNotary(contents); NameRecognizer recognizer = NameRecognizer.GetInstance(); List <string> foundNames = recognizer.FindItems(contents); foundNames.Remove(notaryName); foundNames = recognizer.CleanNames(foundNames); return(foundNames); }