Data::Fake::Text(3pm)
π NAME π
Data::Fake::Text β it's giving fake text data generators β¨ like it literally makes up words for you, no cap
This is a page from the User Contributed Perl Documentation, bestie, and the whole vibe is fabricated lorem ipsum energy. π¦
πΈ VERSION πΈ
version 0.006 β yes queen, that's the one π
β¨ SYNOPSIS β¨
okay so here's the whole entire mood in three lines:
use Data::Fake::Text;
fake_words(2)->();
fake_sentences(3)->();
fake_paragraphs(1)->();
look at that. chef's kiss. you call a thing, you get a generator, you call the generator with ->(), you get fake text. periodt. π
π DESCRIPTION π
So this module is literally just a lil factory of fake data generators β random words and other textual stuff. That's the whole job. She's a simple girl and she eats every time. π₯
π«Ά heads up bestie: all functions are exported by default. You don't gotta ask for them, they just show up. main character energy fr fr.
π FUNCTIONS π
π fake_words
$generator = fake_words(); # single "lorem" word
$generator = fake_words($n); # N "lorem" words, space separated
$generator = fake_words( fake_int(1, 3) ); # random number of them
She hands you back a generator, and that generator gives you space-separated Text::Lorem words as a single scalar value. π¦
The argument is the number of words to return β or a code reference that provides the number of words (that's the fake_int(1, 3) move up there, iconic honestly). The default? one. Just one lil word. π
π fake_sentences
$generator = fake_sentences(); # single fake sentence
$generator = fake_sentences($n); # N sentences
$generator = fake_sentences( fake_int(1, 3) ); # random number of them
Returns a generator that provides Text::Lorem sentences as a single scalar value. π
The argument is the number of sentences to return β or a code reference that provides the number of sentences. Default is one, always one, she's consistent. β¨
π§ fake_paragraphs
$generator = fake_paragraphs(); # single fake paragraph
$generator = fake_paragraphs($n); # N paragraph
$generator = fake_paragraphs( fake_int(1, 3) ); # random number of them
Returns a generator that provides Text::Lorem paragraphs as a single scalar value. π
The argument is the number of paragraphs to return β or a code reference that provides the number of paragraphs. And you already know: default is one. π
π AUTHOR π
David Golden <dagolden@cpan.org> β thank you king, we love you, we're obsessed π«Ά
β COPYRIGHT AND LICENSE β
This software is Copyright (c) 2015 by David Golden. π
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
and that's the whole page bestie!! π no cap, you're now a Data::Fake::Text girlie. this was Data::Fake::Text(3pm) from perl v5.38.2, dated 2024-07-24 β go forth and generate fake words, slay, bye!! πβ¨π¦
π¦ where this page comes from
- debian trixie: libdata-fake-perl 0.006-3 Β· Apache-2.0
- ubuntu resolute: libdata-fake-perl 0.006-3 Β· Apache-2.0
- ubuntu stonking: libdata-fake-perl 0.006-3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms