vlcice/piglatin

Pig Latin - an English game of alterations

dev-master 2018-10-12 14:57 UTC

This package is not auto-updated.

Last update: 2024-05-18 17:51:57 UTC


README

About Pig Latin

Pig Latin is essentially a game of alterations played on the English language game. To form the Pig Latin form of an English word the initial consonant sound is transposed to the end of the word and an ay is affixed (Ex.: "banana" would yield anana-bay). The purpose of the alteration is to both obfuscate the encoding and to indicate for the intended recipient the encoding as 'Pig Latin'. The reference to Latin is a deliberate misnomer, as it is simply a form of jargon, used only for its English connotations as a 'strange and foreign-sounding language'. The origins of Pig Latin are unknown.

Using

$translator = new Translator();
$translator->translate('banana');