An open API service indexing awesome lists of open source software.

https://github.com/owen7000/pypiglatin

PyPigLatin is a python module which can convert words or strings of words from English, into Pig Latin
https://github.com/owen7000/pypiglatin

piglatin pip python3

Last synced: 19 days ago
JSON representation

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

Awesome Lists containing this project

README

        

![pypiglatin](https://socialify.git.ci/Owen7000/pypiglatin/image?description=1&font=KoHo&forks=1&issues=1&language=1&name=1&owner=1&pulls=1&stargazers=1&theme=Light)

![PyPI - Downloads](https://img.shields.io/pypi/dm/pypiglatin?style=for-the-badge)
![PyPI](https://img.shields.io/pypi/v/pypiglatin?style=for-the-badge)
![PyPI - License](https://img.shields.io/pypi/l/pypiglatin?style=for-the-badge)
[![Downloads](https://static.pepy.tech/badge/pypiglatin)](https://pepy.tech/project/pypiglatin)

# PyPigLatin

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

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install PyPigLatin.

```bash
pip install pypiglatin
```

## Usage

```python
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](https://pypiglatin.readthedocs.io/en/latest/)

## License

[GPL-3.0](https://www.gnu.org/licenses/gpl-3.0.en.html)