View Source Faker.Person.En (Faker v0.18.0)
Functions for name data in English
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
Returns a random complete job title
Returns a random job title descriptor
Returns a random job title name
Returns a random job title level
Functions
@spec first_name() :: String.t()
Returns a random first name
Examples
iex> Faker.Person.En.first_name()
"Joany"
iex> Faker.Person.En.first_name()
"Elizabeth"
iex> Faker.Person.En.first_name()
"Abe"
iex> Faker.Person.En.first_name()
"Ozella"
@spec last_name() :: String.t()
Returns a random last name
Examples
iex> Faker.Person.En.last_name()
"Blick"
iex> Faker.Person.En.last_name()
"Hayes"
iex> Faker.Person.En.last_name()
"Schumm"
iex> Faker.Person.En.last_name()
"Rolfson"
@spec name() :: String.t()
Returns a complete name (may include a suffix/prefix or both)
Examples
iex> Faker.Person.En.name()
"Mrs. Abe Rolfson MD"
iex> Faker.Person.En.name()
"Conor Padberg"
iex> Faker.Person.En.name()
"Mr. Bianka Ryan"
iex> Faker.Person.En.name()
"Ally Rau MD"
@spec prefix() :: String.t()
Returns a random prefix
Examples
iex> Faker.Person.En.prefix()
"Mr."
iex> Faker.Person.En.prefix()
"Mrs."
iex> Faker.Person.En.prefix()
"Mr."
iex> Faker.Person.En.prefix()
"Dr."
@spec suffix() :: String.t()
Returns a random suffix
Examples
iex> Faker.Person.En.suffix()
"II"
iex> Faker.Person.En.suffix()
"V"
iex> Faker.Person.En.suffix()
"V"
iex> Faker.Person.En.suffix()
"V"
@spec title() :: String.t()
Returns a random complete job title
Examples
iex> Faker.Person.En.title()
"Dynamic Identity Administrator"
iex> Faker.Person.En.title()
"Product Communications Technician"
iex> Faker.Person.En.title()
"Legacy Accountability Architect"
iex> Faker.Person.En.title()
"Customer Data Representative"
@spec title_descriptor() :: String.t()
Returns a random job title descriptor
Examples
iex> Faker.Person.En.title_descriptor()
"Dynamic"
iex> Faker.Person.En.title_descriptor()
"Forward"
iex> Faker.Person.En.title_descriptor()
"Forward"
iex> Faker.Person.En.title_descriptor()
"Product"
@spec title_job() :: String.t()
Returns a random job title name
Examples
iex> Faker.Person.En.title_job()
"Administrator"
iex> Faker.Person.En.title_job()
"Associate"
iex> Faker.Person.En.title_job()
"Administrator"
iex> Faker.Person.En.title_job()
"Officer"
@spec title_level() :: String.t()
Returns a random job title level
Examples
iex> Faker.Person.En.title_level()
"Metrics"
iex> Faker.Person.En.title_level()
"Identity"
iex> Faker.Person.En.title_level()
"Assurance"
iex> Faker.Person.En.title_level()
"Intranet"