/// <summary> /// Add a correct word to dictionary /// </summary> /// <param name="userSelectedWord">Form of word which user select to add to dictionary</param> /// <param name="originalWord">Original word without lemmatization</param> ///<returns>True if word is successfully added, otherwise False</returns> private void AddToDictionary(string userSelectedWord, string originalWord) { string suffix = originalWord.Remove(0, userSelectedWord.Length); PersianPOSTag extractedPOSTag = PersianPOSTag.UserPOS; if (suffix.Length > 0) { PersianSuffixesCategory suffixCategory = InflectionAnalyser.SuffixCategory(suffix); extractedPOSTag = InflectionAnalyser.AcceptingPOS(suffixCategory); extractedPOSTag = extractedPOSTag.Set(PersianPOSTag.UserPOS); } AddWordToFinalList(userSelectedWord, m_wordList[userSelectedWord], extractedPOSTag); }