NAME

Chicken::Ipsum - Generate random chicken noises

SYNOPSIS

require Chicken::Ipsum;

my $ci = Chicken::Ipsum->new();

# Generate a string of text with 5 words
$words = $ci->words(5);

# Generate a list of 5 words
@words = $ci->words(5);

# Generate a string of text with 2 sentences
$sentences = $ci->sentences(2);

# Generate a list of 2 sentences
@sentences = $ci->sentences(2);

# Generate a string of text with 3 paragraphs
$paragraphs = $ci->paragraphs(3);

# Generate a list of 3 paragraphs
@paragraphs = $ci->paragraphs(3);

DESCRIPTION

Often when developing a website or other application, it's important to have placeholders for content. This module generates prescribed amounts of clucking, cawing and other chicken-y noises.

CONSTRUCTOR

new()

my $ci = Chicken::Ipsum->new( %options )

This method constructs a new Chicken::Ipsum object and returns it. Key/value pair arguments may be provided to set up the initial state. The following options are recognized:

KEY                     DEFAULT
-----------             --------------------
frantic                 0.1
frantic

Randomly capitalize words with the given ratio.

METHODS

All methods below will return a string in scalar context or a list in list context.

words( INTEGER )

Returns INTEGER Chicken words.

sentences( INTEGER )

Returns INTEGER sentences in Chicken.

paragraphs( INTEGER )

Returns INTEGER paragraphs of Chicken text.

AUTHOR

Dan Church (h3xx<attyzatzat>gmx<dottydot>com)

SEE ALSO

Text::Lorem

https://isotropic.org/papers/chicken.pdf

LICENSE AND COPYRIGHT

Copyright (C) 2023 Dan Church.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AVAILABILITY

The latest version of this library is likely to be available from CPAN as well as:

https://codeberg.org/h3xx/perl-Chicken-Ipsum

THANKS

Thanks to Sebastian Carlos's https://chickenipsum.lol/ (https://github.com/sebastiancarlos/chicken-ipsum) for the inspiration.