A module that can convert words or strings of words from English to Pig Latin.
Project description
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"
p.translate_string(larger_string)
# This would print 'igpay atinlay isway ardhay otay eakspay'
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PyPigLatin-0.1.1.tar.gz
(1.8 kB
view hashes)
Built Distribution
Close
Hashes for PyPigLatin-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4178e3c253ae47392b711f8e9ee40d5e5ff14f269859255d3e4a5e13d272b66e |
|
MD5 | 6239ab03914a666b8a0cbaa6415068da |
|
BLAKE2b-256 | 81ffc0b6fe38c33dece3f8f7444691aa82dd950721c277220e34c5cdb4eca84c |