Lingua::PigLatin - Perl extension for Pig Latin
use Lingua::PigLatin 'piglatin'; print piglatin("Put the candle back.");
This module translates strings into Pig Latin.
For any word starting with one or more consonants (including digraphs such as qu-, th-, sh-, ch-, gh-, wh-, or ph-), move the starting syllable to the end of the word and append -ay.
For any word starting with a vowel do not move the syllable, but append -way.
orFay anyway ordway tartingsay ithway oneway orway oremay onsonantscay (includingway igraphsday uchsay asway uqay-, htay-, hsay-, hcay-, hgay-, hway-, orway hpay-), ovemay ethay tartingsay yllablesay otay ethay endway ofway ethay ordway andway appendway -ayway.
orFay anyway ordway tartingsay ithway away owelvay oday otnay ovemay ethay yllablesay, utbay appendway -ayway.
None by default.
Can export piglatin function for convenience.
http://www.perlmonks.org/?node_id=3586
Capitalization. Contractions.
Jack Coates, <jack@monkeynoodle.org>>
Copyright (C) 2009 by Jack Coates
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Lingua::PigLatin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::PigLatin
CPAN shell
perl -MCPAN -e shell install Lingua::PigLatin
For more information on module installation, please visit the detailed CPAN module installation guide.