Pig Latin Decoder

The motivation for this comes from The Big Book of Small Python Projects. This is a riff on #54, Pig Latin.

To read more about the rules of of Pig Latin, as always, refer to the Wikipedia page. As there is some flexibility with respect to how the rules are implemented, here are some things to know about this encoder:

  • Digits (e.g., 3ay) are not decoded. If you want them decoded, provide the string-literal representation (e.g., eethray)
  • Title-case is preserved (e.g., Estay becomes Test)
  • Capital-case is preserved (e.g., IACay becomes CIA)
  • The decoder cues in on way as the suffice to words that begin with a vowel
  • Punctuation is preserved (e.g., hatway???? becomes what????)

If you have any issues at all, please contact me!

Note: Want to encode a message? Head over to the Pig Latin Encoder.