private string FindMarkAndModel() { string markAndModelSplitWords = string.Empty; var markAndModelMatchedWords = wordMatcher.GetMatchedWords(targetMarkAndModelLabels); if (markAndModelMatchedWords.Count == 0) { //TO DO add log info return(markAndModelSplitWords); } foreach (var matchedWord in markAndModelMatchedWords) { var markAndModelWords = markAndModelFinder.FindWords(matchedWord); if (markAndModelWords.Count == 0) { //TO DO add log info } else { markAndModelSplitWords = GetWordsText(markAndModelWords); } if (!string.IsNullOrEmpty(markAndModelSplitWords)) { break; } } return(markAndModelSplitWords); }
private string FindType() { string typeSplitWords = string.Empty; var typeMatchedWords = wordMatcher.GetMatchedWords(targetTypeLabels); if (typeMatchedWords.Count == 0) { //TO DO add log info return(typeSplitWords); } foreach (var matchedWord in typeMatchedWords) { var typeWords = typeFinder.FindWords(matchedWord); if (typeWords.Count == 0) { //TO DO add log info } else { typeSplitWords = GetWordsText(typeWords); } if (!string.IsNullOrEmpty(typeSplitWords)) { break; } } return(typeSplitWords); }
public List <string> Get(string letters) { return(_wf.FindWords(letters.ToLower(), DefaultMinLength).ToList()); }