Skip to content

Python script to convert text in a .txt file to Pig Latin and back

Notifications You must be signed in to change notification settings

pranavad/pyglatin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

pyglatin

Python script to convert text in a .txt file to Pig Latin and back

What Pig Latin is

Pig Latin is a language game in which words in English are altered. The objective is to conceal the meaning of the words from others not familiar with the rules. 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. (source: Wikipedia)

This is not a true representation of Pig Latin, but it is close enough.

The script translates the files with the vanilla Pig Latin rules. The reverse translation adds the letter y to all words starting with vowels.

For example -

Enjoy > Enjoyyay

Enjoyyay > yEnjoy

How to use this

  1. Run the script
  2. Specify the file to be translated
  3. Specify whether you want to decrypt (Pig latin to English) or encrypt (English to Pig Latin)
  4. Specify if you want to save the converted text in the original file or another file
  5. The converted text will be saved in your provided output file

Requirements

  1. Python 3.4.4 ( Find it here )

Enjoy! (Or Enjoyyay!)

About

Python script to convert text in a .txt file to Pig Latin and back

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages