Lala
NAME
Acme::Insult::Lala - Construct an insulting epithet in the manner of an old IRC bot
SYNOPSIS
use Acme::Insult::Lala;
my $lala = Acme::Insult::Lala.new;
say $lala.generate-insult;
DESCRIPTION
This makes an insulting epithet in the manner of 'lala' an IRC bot that used to be on the london.pm channel back in the mists of time.
I think I originally got the source data from an analysis of epithets in Shakespeare plays or something, but I can't actually remember it was that long ago. Anyhow at some point the lovely Simon Wistow retrieved the basic code and data and incorporated it in the Perl 5 module Acme::Scurvy::Whoreson::BilgeRat::Backend::insultserver. From whence I retrieved the data and made it into a Raku module.
I suppose you could use it for generating test data or something but there's nothing more to it than you see in the Synopsis.
METHODS
method new
method new()
The constructor creates the word lists up front so if you are planning on using this repeatedly it is best to create a single object and re-use it.
method generate-insult
method generate-insult() returns Str
This generates a new random insult based on the internal word lists, as noted above if you are planning to call this repeatedly it is probably better to re-use a single object if you can.