Text::Greeking(3pm)
β¨ NAME β¨
Text::Greeking β bestie, this module literally generates meaningless text for you π like when you're designing a page and you just need something there so it looks like real content. No cap.
πΈ SYNOPSIS πΈ
use Text::Greeking;
my $g = Text::Greeking->new;
$g->paragraphs(1,2) # min of 1 paragraph and a max of 2
$g->sentences(2,5) # min of 2 sentences per paragraph and a max of 5
$g->words(8,16) # min of 8 words per sentence and a max of 16
print $g->generate; # use default Lorem Ipsum source
okay so that's the whole vibe in five lines. iconic. π
π¦ DESCRIPTION π¦
So greeking is the whole art of putting random letters or marks on a page to show the overall appearance of a printed page β without any actual text being there. It's giving "vibe check the layout, not the words." β¨
Why tho? Because it's way easier to judge how a document looks when you're not getting distracted by what it says. Your brain wants to read everything, bestie, and greeking tells it to sit down and chill. π
This module is for quickly generating varying meaningless text from any source, so you can create that illusion of content inside your systems. π
And here's the tea β β it was made to give developers simulated content to fill systems with simulated content. Instead of that same static Lorem Ipsum text over and over (boring π), it uses randomly generated text and optionally varying word sources, so you avoid those repetitive, monotonous patterns that do not represent real system usage. Periodt.
π METHODS π
π Text::Greeking->new
Constructor method, bestie. It returns a brand new instance of the class. Slay. π«Ά
π $g->init
Initializes the object with defaults. The constructor calls it, but it's broken out separately so you can easily overload it and get your own customized defaults and other behaviour. iykyk β¨
π $g->sources([\@ARRAY])
Gets/sets the table of source word collections currently in memory, as an ARRAY reference. π
π $g->add_source($text)
You hand this class a body of text as a SCALAR, and it processes it into a list of word tokens so you can use them to generate random filler text later. fr fr π
π $g->generate
Returns a body of random text, generated from a randomly selected source, using the minimum and maximum values you set with paragraphs, sentences, and words. π
Heads up though: if you call generate without any sources, a standard Lorem Ipsum block gets added to the sources and then used for processing the random text. So it's never gonna leave you hanging π
π $g->paragraphs($min,$max)
Sets the minimum and maximum number of paragraphs to generate. The default is a minimum of 2 and a maximum of 8. π
π $g->sentences($min,$max)
Sets the minimum and maximum number of sentences to generate per paragraph. The default is a minimum of 2 and a maximum of 8. π
π $g->words($min,$max)
Sets the minimum and maximum number of words to generate per sentence. The default is a minimum of 5 and a maximum of 15. π
π SEE ALSO π
WWW::Lipsumβ an interface to lipsum.com <http://www.lipsum.com>. πText::Loremβ generate random latin-looking text.Text::Lorem::Moreβ class that provides methods for generating various types of structured latin filler text, such as names, words, sentences, paragraphs, titles, hostnames, etc.Text::Lorem::JAβ generate Japanese filler text. πΈWWW::Lipsum::Chineseβ generate Chinese filler text.Text::Greeking::zh_TWβ another module for generating Chinese filler text.Acme::CorpusScramblerβ generates filler text based on text that you provide; falls back to the using the corpus forText::Greeking::zh_TW.Template::Plugin::Text::Greekingβ a template toolkit plugin forText::Greeking. β¨Fakerβ an extensible framework for generating fake data, including lorem ipsum style filler text.Lingua::ManagementSpeakβ generates filler text in 'management speak'. π- Toby Inkster <https://metacpan.org/author/TOBYINK> β pedant. π
- The wikipedia page on Greeking <http://en.wikipedia.org/wiki/Greeking>.
β TO DO β
- HTML output mode including random hyperlinked phrases. π₯
- Configurable punctuation controls.
π§ REPOSITORY π§
<https://github.com/neilb/Text-Greeking>
π LICENSE π
The software is released under the Artistic License. The terms of the Artistic License are described at <http://www.perl.com/language/misc/Artistic.html>.
π AUTHOR & COPYRIGHT π
Except where otherwise noted, Text::Greeking is Copyright 2005-2009, Timothy Appnel, tima@cpan.org. All rights reserved.
and that's the whole page, bestie π«Ά this lil' manual is for Text::Greeking in the User Contributed Perl Documentation section, and it was generated with perl v5.36.0 back on 2022-11-20. go forth and fill the void with beautiful nonsense πβ¨π
π¦ where this page comes from
- debian bookworm: libtext-greeking-perl 0.15-2 Β· Artistic-1.0-Perl
- debian trixie: libtext-greeking-perl 0.15-2 Β· Artistic-1.0-Perl
- ubuntu noble: libtext-greeking-perl 0.15-2 Β· Artistic-1.0-Perl
- ubuntu resolute: libtext-greeking-perl 0.15-2 Β· Artistic-1.0-Perl
- ubuntu stonking: libtext-greeking-perl 0.15-2 Β· Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms