View Source Faker.Name (Faker v0.18.0)
Deprecated. Faker.Name will be removed in 1.0.0. Please use Faker.Person instead.
Summary
Functions
first_name()
deprecated
Returns a random first name
last_name()
deprecated
Returns a random last name
name()
deprecated
Returns a random complete name
prefix()
deprecated
Returns a random name related prefix
suffix()
deprecated
Returns a random name related suffix
title()
deprecated
Returns a random name related title
Functions
This function is deprecated. Use Faker.Person.first_name/0 instead..
@spec 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"
This function is deprecated. Use Faker.Person.last_name/0 instead..
@spec 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"
This function is deprecated. Use Faker.Person.name/0 instead..
@spec 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"
This function is deprecated. Use Faker.Person.prefix/0 instead..
@spec 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."
This function is deprecated. Use Faker.Person.suffix/0 instead..
@spec 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"
This function is deprecated. Use Faker.Person.title/0 instead..
@spec 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"