Text::Filter::Froggy - the frog goes rabbit rabbit rabbit
Version 0.0.0
use Text::Filter::Froggy; my $froggy = Text::Filter::Froggy->new(); #read standard in and process it my @lines=<STDIN>; print $froggy->process(join('', @lines));
This takes a chunk of text and filters it. It will remove all new lines, camas, semicolons, colons, single quotes, and double quotes. Once it does it will search through the words and choose some random words and replace them using a random selection from Aiksaurus.
In regards to the Aiksaurus part, it ignores 'the', 'them', 'who', 'was', 'when', 'that', 'this', 'we', 'want', and 'what'.
This initiates it.
This is the is the random chance that will replace the text with "hi\n". The default value is 5 and values between 0 and 100 are accepted.
This is the minimum length for a word to be replaced. The default is 5.
This is the max length for a word to be replaced. The default is 20.
This is the percentage that any of the words fitting in the length restriction will be replaced. The default is 50.
This is the maximum number of words of words that will be replaced.
If this is defined, it should bethe number of columns to wrap the text to.
#initiates it a a replaceP value of 30 my $froggy=Text::Filter::Froggy->new({replaceP=>30})
This processes a chunk of text.
my $text=$froggy->process($text); if($froggy->{error}){ print "Error!\n"; }
This blanks the error storage and is only meant for internal usage.
It does the following.
$self->{error}=undef; $self->{errorString}="";
Zane C. Bowers, <vvelox at vvelox.net>
<vvelox at vvelox.net>
Please report any bugs or feature requests to bug-text-filter-froggy at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Text-Filter-Froggy. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-text-filter-froggy at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Text::Filter::Froggy
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Text-Filter-Froggy
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Text-Filter-Froggy
CPAN Ratings
http://cpanratings.perl.org/d/Text-Filter-Froggy
Search CPAN
http://search.cpan.org/dist/Text-Filter-Froggy/
Copyright 2009 Zane C. Bowers, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Text::Filter::Froggy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Filter::Froggy
CPAN shell
perl -MCPAN -e shell install Text::Filter::Froggy
For more information on module installation, please visit the detailed CPAN module installation guide.