A pseudo-word generator
Project description
The gibberish module let’s you generate random, pronounceable pseudo-words. It started life as an answer on StackOverflow about password generators , but it’s also a fun way to coin words or just spark some lexical creativity.
Usage
gibberish creates pseudo-words which consist of one consonant-vowel-consonant syllable that sounds like it could be English. Sometimes it spits out real words; most of the time not:
>>> from gibberish import Gibberish >>> gib = Gibberish() >>> gib.generate_word() 'zept' >>> gib.generate_word(start_vowel=True) 'ientz' >>> gib.generate_word(end_vowel=True) 'twae' >>> gib.generate_words(3) ['sqiounn', 'nuil', 'hydrieucks']
It also works as a console script:
~$ gibberish 6 strit druf doct vel dosk flomp ~$ gibberish brank ~$ gibberish 1 -l large fabaduk ~$ gibberish 2 -l medium voskot koontan
Installation
To install the gibberish module and console script globally, clone this repository and run:
~$ python setup.py install
Updates
- (2017.5.11)
Analyze the components from CMUdict (nltk.corpus.cmudict) entries.
Use secrets module if Python version 3.6 or later.
Contributions
Please help edit entry the gibberish/database/components.yaml as which of the characters is an initial consonant, final consonants, or vowels is opinionated.
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
Built Distribution
Hashes for gibberish-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3404e56549937f759d3ed02b642ac19efee7019ee967242f2f3ad4c3832eb58 |
|
MD5 | e820245c4c24fd7c1fca4eb5cc5cf809 |
|
BLAKE2b-256 | 8b05308d21a317b51a044a49e952a199a7ce571da0b01ea0c65fe9e13489cc06 |