Data::Fake::Text(3pm)

πŸ“¦
version 0.006 Β· 3 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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 🫢


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