/// <summary> /// Returns true if the word is spelled correctly. /// </summary> /// <param name="namingService"> /// The naming service to use. /// </param> /// <param name="word"> /// The word to check. /// </param> /// <returns> /// True if spelled correct. /// </returns> private static bool IsSpelledCorrectly(NamingService namingService, string word) { return (namingService.GetPreferredAlternateForDeprecatedWord(word) == null) && (namingService.GetCompoundAlternateForDiscreteWord(word) == null) && (namingService.CheckSpelling(word) != WordSpelling.Unrecognized); }