Faker v0.10.0 Faker.Lorem View Source

Functions for generating Lorem Ipsum data

Link to this section 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

Link to this section Functions

Link to this function characters(range \\ %Range{first: 15, last: 255}) View Source
characters(Range.t()) :: [char()]
characters(integer()) :: [char()]

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

Link to this function paragraph(range \\ %Range{first: 2, last: 5}) View Source
paragraph(integer() | Range.t()) :: String.t()

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

Link to this function paragraphs(range \\ %Range{first: 2, last: 5}) View Source
paragraphs(Range.t()) :: [String.t()]
paragraphs(integer()) :: [String.t()]

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

Link to this function sentence(range \\ %Range{first: 4, last: 10}) View Source
sentence(Range.t()) :: String.t()
sentence(integer()) :: String.t()

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

Link to this function sentence(num, mark) View Source
sentence(integer(), binary()) :: String.t()

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

Link to this function sentences(range \\ 2..5) View Source
sentences(Range.t()) :: [String.t()]
sentences(integer()) :: [String.t()]

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

Returns a random word from @data

Link to this function words(range \\ %Range{first: 3, last: 6}) View Source
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