示例#1
0
 /// <summary>
 /// Returns a value indicating whether the provided string corresponds to a common
 /// female name in the English language. Lookups are performed in a case insensitive
 /// manner and currently do not respect plurality.
 /// </summary>
 /// <param name="text">The Name to lookup</param>
 /// <returns>
 /// <c>true</c> if the provided string corresponds to a common female name in the
 /// English language; otherwise, <c>false</c>.
 /// </returns>
 public bool IsFemaleFirst(string text) => FemaleNames.Contains(text);
示例#2
0
 /// <summary>
 /// Determines if provided text is in the set of Female or Male first names.
 /// </summary>
 /// <param name="text">The text to check.</param>
 /// <returns>
 /// <c>true</c> if the provided text is in the set of Female or Male first names;
 /// otherwise, <c>false</c>.
 /// </returns>
 public bool IsFirstName(string text) => FemaleNames.Count > MaleNames.Count ?
 MaleNames.Contains(text) || FemaleNames.Contains(text) :
 FemaleNames.Contains(text) || MaleNames.Contains(text);