Exemple #1
0
 /// <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);
Exemple #2
0
 /// <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);
Exemple #3
0
 /// <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;