Skip to main content

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

GPL-3.0

Project details


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)

Uploaded Source

Built Distribution

PyPigLatin-0.1.1-py3-none-any.whl (1.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page