case class Person(language: String = Language.English) extends Product with Serializable
- Alphabetic
- By Inheritance
- Person
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Person(language: String = Language.English)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def findGender(originalName: String): String
-
def
findNationality(originalName: String): String
Detects the nationality of a name from its first name using the embedded nationality lists.
Detects the nationality of a name from its first name using the embedded nationality lists. Returns the nationality key (e.g. "arab", "french", ...) or "unknown" when it cannot be detected. Nationality detection is only meaningful for the English language.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getConsistentName(originalName: String): Seq[String]
- def getFirstName(): Seq[String]
- def getFirstNameByGender(originalName: String): Seq[String]
-
def
getFirstNameByNationality(originalName: String): Seq[String]
Nationality-and-gender aware first names.
Nationality-and-gender aware first names. Detects the nationality and gender of the original first name and returns the matching nationality first name list. Returns an empty sequence when the nationality cannot be detected, so callers can fall back to the regular behavior.
- def getLastName: Seq[String]
-
def
getLastNameByNationality(originalName: String): Seq[String]
Nationality-aware surnames, keyed off the detected nationality of the original first name.
Nationality-aware surnames, keyed off the detected nationality of the original first name. Returns an empty sequence when the nationality cannot be detected.
- def getName(): Seq[String]
- def getNameByGender(originalName: String): Seq[String]
-
def
getNameByNationality(originalName: String): Seq[String]
Full nationality-aware names (first name + surname of the same nationality).
Full nationality-aware names (first name + surname of the same nationality). Returns an empty sequence when the nationality cannot be detected.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val language: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()