Skip to main content

spooner

Project description

Documentation Status PyPI version codecov Build Status Code style: black

spooner

Generates spoonerisms based on sounds in words. Created just for fun and learning.

STANDARD DISCLAIMER: Spoonerisms made by this program are not guaranteed to be funny, but they are technically spoonerisms.

Installation

pip install spooner

Usage

Use it like this:

>>> import spooner as sp
>>> sp.phonemes("trail")
['T', 'R', 'EY1', 'L']
>>> sp.spoon("trail snacks")
{'trail': ['snail'], 'snacks': ['tracks', 'trax']}
>>> sp.spoonsentence("let's eat trail snacks")
["let's treat ail snacks", "let's treat ale snacks", "let's eat snail tracks", "let's eat snail trax"]

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

spooner-0.5.11.tar.gz (43.8 kB view hashes)

Uploaded Source

Built Distribution

spooner-0.5.11-py2.py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 2 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