View Source Faker.Person.Fr (Faker v0.18.0)
Functions for name data in French
Summary
Functions
Returns a random first name
Returns a random last name
Returns a complete name (may include a suffix/prefix or both)
Returns a random prefix
Returns a random suffix
Functions
@spec first_name() :: String.t()
Returns a random first name
Examples
iex> Faker.Person.Fr.first_name()
"Damien"
iex> Faker.Person.Fr.first_name()
"Madeleine"
iex> Faker.Person.Fr.first_name()
"Marcel"
iex> Faker.Person.Fr.first_name()
"Fabrice"
@spec last_name() :: String.t()
Returns a random last name
## Examples
iex> Faker.Person.Fr.last_name() "Bassett" iex> Faker.Person.Fr.last_name() "Duplantier" iex> Faker.Person.Fr.last_name() "Boivin" iex> Faker.Person.Fr.last_name() "Duplantier"
@spec name() :: String.t()
Returns a complete name (may include a suffix/prefix or both)
Examples
iex> Faker.Person.Fr.name()
"Madame Marcel Duplantier MD"
iex> Faker.Person.Fr.name()
"Quentin Garnier"
iex> Faker.Person.Fr.name()
"Docteur Camille Fontaine"
iex> Faker.Person.Fr.name()
"Serge Bassett V"
@spec prefix() :: String.t()
Returns a random prefix
Examples
iex> Faker.Person.Fr.prefix()
"Docteur"
iex> Faker.Person.Fr.prefix()
"Madame"
iex> Faker.Person.Fr.prefix()
"Docteur"
iex> Faker.Person.Fr.prefix()
"Professeur"
@spec suffix() :: String.t()
Returns a random suffix
Examples
iex> Faker.Person.Fr.suffix()
"V"
iex> Faker.Person.Fr.suffix()
"I"
iex> Faker.Person.Fr.suffix()
"PhD"
iex> Faker.Person.Fr.suffix()
"MD"