Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 522 Bytes

README.md

File metadata and controls

3 lines (2 loc) · 522 Bytes

pyglatin

Pyglatin is a Python script capable of translating English text into Pig Latin, in which all consonants until the first vowel are moved to the end of the word and 'ay' is added. It can also translate back to English, which is not trivial when you encounter different potential permutations of consonants at the beginning/end of the word. We solve this using a frequency distribution to pick the most likely permutation, with some light rule-based phonetic filtering.