/// <summary> /// Determines whether the ProperNoun's text corresponds to a last name in the English /// language. Lookups are performed in a case insensitive manner and currently do not /// respect plurality. /// </summary> /// <param name="proper">The ProperNoun to check.</param> /// <returns> /// <c>true</c> if the ProperNoun's text corresponds to a last name in the English language; /// otherwise, <c>false</c>. /// </returns> public static bool IsLastName(this ProperNoun proper) => NameData.IsLastName(proper.Text);
/// <summary> /// Returns a value indicating whether the ProperNoun's text corresponds to a male first /// name in the English language. Lookups are performed in a case insensitive manner and /// currently do not respect plurality. /// </summary> /// <param name="proper">The ProperNoun to test.</param> /// <returns> /// <c>true</c> if the ProperNoun's text corresponds to a male first name in the English /// language; otherwise, <c>false</c>. /// </returns> public static bool IsMaleFirstName(this ProperNoun proper) => NameData.IsMaleFirst(proper.Text);
/// <summary> /// Determines if a Pronoun and a ProperNoun instance have the same gender. /// </summary> /// <param name="first">The Pronoun.</param> /// <param name="second">The ProperNoun.</param> /// <returns> /// <c>true</c> if Pronoun and the ProperNoun have the same gender; otherwise, <c>false</c>. /// </returns> public static bool IsGenderEquivalentTo(this ProperNoun first, Pronoun second) => first.GetGender() == second.Gender;