/// <summary>
        /// Add a word to the user dictionary.
        /// </summary>
        /// <param name="word">A word to add to the user dictionary.</param>
        /// <returns>True if the word was successfully added to the user dictionary; otherwise false.</returns>
        public bool AddToUserDictionary(string word)
        {
            if (!CanAddToUserDictionary(word))
            {
                return(false);
            }

            UserDictionaryWords.Add(word);
            LoadUserDictionary(UserDictionaryWords.ToArray());
            return(true);
        }
 /// <summary>
 /// Clears to user dictionary.
 /// </summary>
 public static void ClearUserDictionary()
 {
     UserDictionary = null;
     UserDictionaryWords.Clear();
     IgnoreList.Clear();
 }
 /// <summary>
 /// Determines whether the given word can be added to the user dictionary.
 /// </summary>
 /// <param name="word">The word to check for.</param>
 /// <returns> <c>true</c> if the given word can be added to the user dictionary; otherwise, <c>false</c>.</returns>
 public bool CanAddToUserDictionary(string word)
 {
     return(!UserDictionaryWords.Exists(f =>
                                        string.Compare(f, word, StringComparison.Ordinal) == 0));
 }