Faker v0.8.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 list 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})
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})
paragraph(integer | Range.t) :: String.t

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

paragraphs(range \\ %Range{first: 2, last: 5})
paragraphs(Range.t) :: [String.t]
paragraphs(integer) :: [String.t]

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

sentence(range \\ %Range{first: 4, last: 10})
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)
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})
sentences(Range.t) :: [String.t]
sentences(integer) :: [String.t]

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

word()
word() :: String.t

Returns a random word from @data

words(range \\ %Range{first: 3, last: 6})
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