Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added pig latin translation goodie

  • Loading branch information...
commit d675aa1673ef07dfeaf341d237b5c507284fd3c1 1 parent edef956
@nospampleasemam nospampleasemam authored
Showing with 14 additions and 0 deletions.
  1. +1 −0  dist.ini
  2. +13 −0 lib/DDG/Goodie/PigLatin.pm
View
1  dist.ini
@@ -18,6 +18,7 @@ Text::Unidecode = 0.04
Date::Calc = 6.3
DateTime = 0.74
Lingua::EN::Numericalize = 1.52
+Lingua::PigLatin = 0.01
Locale::SubCountry = 1.50
; causing problems because not pp: HTML::Barcode::QRCode = 0.09
Unicode::Char = 0.02
View
13 lib/DDG/Goodie/PigLatin.pm
@@ -0,0 +1,13 @@
+package DDG::Goodie::PigLatin;
+
+use DDG::Goodie;
+use Lingua::PigLatin 'piglatin';
+
+triggers startend => 'pig latin', 'piglatin';
+
+zci is_cached => 1;
+zci answer_type => "translation";
+
+handle remainder => sub { piglatin($_) };
+
+1;
Please sign in to comment.
Something went wrong with that request. Please try again.