Faker v0.12.0 Faker.Name View Source
Functions for generating names
Link to this section Summary
Functions
Returns a random first name
Returns a random last name
Returns a random complete name
Returns a random name related prefix
Returns a random name related suffix
Returns a random name related title
Link to this section Functions
Link to this function
first_name()
View Source
first_name()
View Source
first_name() :: String.t()
first_name() :: String.t()
Returns a random first name
Examples
iex> Faker.Name.first_name()
"Joany"
iex> Faker.Name.first_name()
"Elizabeth"
iex> Faker.Name.first_name()
"Abe"
iex> Faker.Name.first_name()
"Ozella"
Link to this function
last_name()
View Source
last_name()
View Source
last_name() :: String.t()
last_name() :: String.t()
Returns a random last name
Examples
iex> Faker.Name.last_name()
"Blick"
iex> Faker.Name.last_name()
"Hayes"
iex> Faker.Name.last_name()
"Schumm"
iex> Faker.Name.last_name()
"Rolfson"
Link to this function
name()
View Source
name()
View Source
name() :: String.t()
name() :: String.t()
Returns a random complete name
Examples
iex> Faker.Name.name()
"Mrs. Abe Rolfson MD"
iex> Faker.Name.name()
"Conor Padberg"
iex> Faker.Name.name()
"Mr. Bianka Ryan"
iex> Faker.Name.name()
"Ally Rau MD"
Link to this function
prefix()
View Source
prefix()
View Source
prefix() :: String.t()
prefix() :: String.t()
Returns a random name related prefix
Examples
iex> Faker.Name.prefix()
"Mr."
iex> Faker.Name.prefix()
"Mrs."
iex> Faker.Name.prefix()
"Mr."
iex> Faker.Name.prefix()
"Dr."
Link to this function
suffix()
View Source
suffix()
View Source
suffix() :: String.t()
suffix() :: String.t()
Returns a random name related suffix
Examples
iex> Faker.Name.suffix()
"II"
iex> Faker.Name.suffix()
"V"
iex> Faker.Name.suffix()
"V"
iex> Faker.Name.suffix()
"V"
Link to this function
title()
View Source
title()
View Source
title() :: String.t()
title() :: String.t()
Returns a random name related title
Examples
iex> Faker.Name.title()
"Dynamic Identity Administrator"
iex> Faker.Name.title()
"Product Communications Technician"
iex> Faker.Name.title()
"Legacy Accountability Architect"
iex> Faker.Name.title()
"Customer Data Representative"