public static NRCRecord FindRecord(this INRCDictionary dictionary, IWordItem word) { NRCRecord nrcRecord = null; foreach (var text in word.GetPossibleText()) { nrcRecord = dictionary.FindRecord(text); if (nrcRecord != null) { break; } } if (nrcRecord == null) { return(null); } nrcRecord = (NRCRecord)nrcRecord.Clone(); if (word.Relationship?.Inverted != null) { nrcRecord.Invert(); } return(nrcRecord); }
public WordNRCRecord(string word, NRCRecord record) { Word = word; Record = record; }