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.2.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for pypiglatin-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9064231fdbbbbf013f495534f5e18ffe3bd09d6d05d9aae8e52ca8c1c3987481 |
|
MD5 | 7b895bb9721507cc6dc30c402b2f42ca |
|
BLAKE2b-256 | de19a2c007afaf49b02e134fc65c959df035bd0870807dd9361cb18e638ce081 |