View Source Exfake (Exfake v0.1.2)

Documentation for Exfake.

Link to this section Summary

Functions

Generates a random company BS goals.

Generates a random company catch phrase.

Generates a random company name.

Generates a random company suffix.

Generates first name.

Generates last name.

Generates random lorem paragraph with specified sentence count and sentence words count which randoms between 2 and 5. Sentence count must be greater than 0. Default sentence count is 3. Default words count between 2 and 5.

Generates first name + last name combination.

Generates phone number which formatted randomly.

Generates random lorem sentence with specified words count. Words count must be greater than 1. Default words count is 5.

Generates random latin word.

Link to this section Functions

@spec gen_bs() :: String.t()

Generates a random company BS goals.

examples

Examples

iex> Exfake.gen_bs()
"reintermediate granular niches"
iex> Exfake.gen_bs()
"unleash user-centric markets"
@spec gen_catch_phrase() :: String.t()

Generates a random company catch phrase.

examples

Examples

iex> Exfake.gen_catch_phrase()
"Re-engineered maximized productivity"
iex> Exfake.gen_catch_phrase()
"Right-sized hybrid complexity"
@spec gen_company_name() :: String.t()

Generates a random company name.

examples

Examples

iex> Exfake.gen_company_name()
"Klein, Mueller and Windler"
iex> Exfake.gen_company_name()
"Zion Kerluke LLC"
iex> Exfake.gen_company_name()
"Legros-Yundt"
@spec gen_company_suffix() :: String.t()

Generates a random company suffix.

examples

Examples

iex> Exfake.gen_company_suffix()
"Inc"
iex> Exfake.gen_company_suffix()
"LLC"
@spec gen_first_name() :: String.t()

Generates first name.

examples

Examples

iex> Exfake.gen_first_name()
"Jake"
iex> Exfake.gen_first_name()
"Rosemary"
@spec gen_last_name() :: String.t()

Generates last name.

examples

Examples

iex> Exfake.gen_last_name()
"Nitzsche"
iex> Exfake.gen_last_name()
"Adams"
Link to this function

gen_paragraphs(n \\ 3, limit \\ 5)

View Source
@spec gen_paragraphs(pos_integer(), pos_integer()) :: String.t()

Generates random lorem paragraph with specified sentence count and sentence words count which randoms between 2 and 5. Sentence count must be greater than 0. Default sentence count is 3. Default words count between 2 and 5.

## Examples

iex> Exfake.gen_paragraphs()
"Ut iure. Dicta officiis fugit sapiente consequuntur. Tenetur nisi."
iex> Exfake.gen_paragraphs(3, 2)
"Est deserunt. Non quae. Consectetur consequatur."
iex> Exfake.gen_paragraphs(3, 2)
"Aut non. Eos voluptas. Et libero asperiores. Fugiat esse suscipit. Magnam accusamus molestias aperiam."
@spec gen_person() :: String.t()

Generates first name + last name combination.

examples

Examples

iex> Exfake.gen_person()
"Jake Nitzsche"
iex> Exfake.gen_person()
"Luciano Eichmann"
@spec gen_phone_number() :: String.t()

Generates phone number which formatted randomly.

examples

Examples

iex> Exfake.gen_phone_number()
"684-126-0269"
iex> Exfake.gen_phone_number()
"1-319-098-3384 x06095"
Link to this function

gen_sentence(count \\ 5)

View Source
@spec gen_sentence(pos_integer()) :: String.t()

Generates random lorem sentence with specified words count. Words count must be greater than 1. Default words count is 5.

examples

Examples

iex> Exfake.gen_sentence()
"Dolorum sed tempora quod quisquam."
iex> Exfake.gen_sentece(2)
"Libero vel."
@spec gen_word() :: String.t()

Generates random latin word.

examples

Examples

iex> Exfake.gen_word()
"eveniet"
iex> Exfake.gen_word()
"magnam"