Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.25 KB

README.md

File metadata and controls

43 lines (27 loc) · 1.25 KB

pypiglatin

PyPI - Downloads PyPI PyPI - License Downloads

PyPigLatin

PyPigLatin is a module which can convert words or strings of words from English, into Pig Latin

Installation

Use the package manager pip to install PyPigLatin.

pip install pypiglatin

Usage

import pypiglatin as p

# Example showing translation of a single word
single_word = "Hello"

print(p.translate_word(single_word)
# This would print 'ellohay'


# To trnalsate a larger string, use the translate_string function
larger_string = "Pig Latin is hard to speak"

print(p.translate_string(larger_string))
# This would print 'igpay atinlay isway ardhay otay eakspay'

View the docs Here

License

GPL-3.0