/// <summary> /// Determines if the string exists in this dictionary with the specified lexicon. /// </summary> /// <param name="word">The word to search for.</param> /// <param name="difficulty"></param> /// <returns>Returns true if the word is in the dictionary and it is less than or equal to the Difficulty</returns> public bool Contains(string word, Difficulty diff) { if (!initialized) { throw new Exception("Word List has not been initialized."); } return(Dawg.Contains(word, diff, lexicon)); }