public void ProcessGrammem(Grammem grammem) { }
public string ReconcileWord(string word, Grammem grammem) { Contract.Requires<ArgumentException>(!string.IsNullOrEmpty(word)); Contract.Ensures(!string.IsNullOrEmpty(Contract.Result<string>())); string resultWord = word; LemmatizeResult result = _textAnalyzer.Lemmatize(word).FirstOrDefault(); if (result != null) { string text = result.GetTextByGrammem(grammem).FirstOrDefault(); if (!string.IsNullOrEmpty(text)) { resultWord = text.ToLower(); } } return resultWord; }