Faker v0.7.0 Faker.Lorem

Functions for generating Lorem Ipsum data

Summary

Functions

Returns a character list. It’s length is determined by the parameter provided

Returns a string with an amount of sentences equal to the parameter provided

Returns a string with an amount of paragraphs equal to the parameter provided

Returns a string with an amount of words equal to the parameter provided

Returns a string with an amount of words equal to the parameter provided, concatenating the specified mark

Returns a list of strings of length equal to the parameter provided

Returns a random word from @data

Returns a list of strings representing a word. The length of the list equals the parameter provided

Functions

characters(range \\ %Range{first: 15, last: 255})

Specs

characters(Range.t) :: [char]
characters(integer) :: [char]

Returns a character list. It’s length is determined by the parameter provided

paragraph(range \\ %Range{first: 2, last: 5})

Specs

paragraph(Range.t) :: String.t
paragraph(integer) :: String.t

Returns a string with an amount of sentences equal to the parameter provided

paragraphs(range \\ %Range{first: 2, last: 5})

Specs

paragraphs(Range.t) :: String.t
paragraphs(integer) :: String.t

Returns a string with an amount of paragraphs equal to the parameter provided

sentence(range \\ %Range{first: 4, last: 10})

Specs

sentence(Range.t) :: String.t
sentence(integer) :: String.t

Returns a string with an amount of words equal to the parameter provided

sentence(num, mark)

Specs

sentence(integer, binary) :: String.t

Returns a string with an amount of words equal to the parameter provided, concatenating the specified mark

sentences(range \\ %Range{first: 2, last: 5})

Specs

sentences(Range.t) :: [String.t]
sentences(integer) :: [String.t]

Returns a list of strings of length equal to the parameter provided

word()

Specs

word :: String.t

Returns a random word from @data

words(range \\ %Range{first: 3, last: 6})

Specs

words(Range.t) :: [String.t]
words(integer) :: [String.t]

Returns a list of strings representing a word. The length of the list equals the parameter provided