LoremJulia - A lorem ipsum generator made in Julia

less than 1 minute(s) read

An excursion in the world of Julia.

LoremJulia

A basic lorem ipsum generator made in Julia.

Install

Pkg.clone("git@github.com:ColinFay/LoremJulia.git")

Launch

In Julia, using LoremJulia, then:

lorem_txt gives a full lorem ipsum text of 100 paragraphs.

lorem_chars(volume) returns the number of letters given by the volume param.

lorem_chars(2)
"Lo"

lorem_words(volume) returns the number of words given by the volume param.

lorem_words(2)
"Lorem ipsum"

lorem_sentences(volume) returns the number of sentences given by the volume param.

lorem_sentences(2)
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc placerat lorem ullamcorper, sagittis massa et, elementum dui"

lorem_paragraphs(volume) returns the number of paragraphs given by the volume param.

Credit

The Lorem ipsum text was taken from lipsum.com — generated 100 paragraphs, 8970 words, 60793 bytes of Lorem Ipsum.

What do you think?