https://github.com/brisvag/gibberify

Gibberify is a simple gibberish generator that translates words from a real language to a pronounceable gibberish.

https://github.com/brisvag/gibberify

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.4%) to scientific vocabulary

Keywords

dungeons-and-dragons python translation
Last synced: 6 months ago · JSON representation

Repository

Gibberify is a simple gibberish generator that translates words from a real language to a pronounceable gibberish.

Basic Info
  • Host: GitHub
  • Owner: brisvag
  • License: gpl-3.0
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 576 KB
Statistics
  • Stars: 19
  • Watchers: 1
  • Forks: 6
  • Open Issues: 8
  • Releases: 10
Topics
dungeons-and-dragons python translation
Created over 6 years ago · Last pushed over 6 years ago
Metadata Files
Readme License

README.md

Gibberish? It's MUSIC to my ears!

Or, as an Orc might say:

"Sausdrospo? Jl'gras GUSSFORT bav elf gib!"

Gibberify is a simple gibberish generator that translates words from a real language to an (almost) pronounceable gibberish.

Installation

If you have python (3.6+) installed: bash pip install --user git+git://github.com/brisvag/gibberify.git#egg=gibberify

Pip should automatically add the script to your PATH, so you can simply run gibberify from the command line.

What is this pip you are talking about? I wanna make gibberish!

No worries! For ease of use, there is also a standalone executable version of Gibberify, that you can find here, under "Assets". Download the latest release for your operative system, unzip it and double-click the shit out of it.

The standalone was generated with PyInstaller using the configuration file `gibberify.spec`.
If you want to generate it yourself, just run `pyinstaller gibberify.spec` from the main
directory (you will need pyinstaller installed).

Usage

To open the graphical interface, simply run: gibberify (or just double click on the executable).

DISCLAIMER: the reverse translation function is experimental and, frankly, terrible. Don't expect much from it.

You can also translate from the command line. To print the help, run: gibberify -h

Customisation

To change settings in the GUI, go click on edit and then settings.

WARNING: EXPECT THE PROGRAM TO FREEZE FOR A FEW SECONDS AFTER SAVING!

Several options are available to tune the gibberish language generation: - pool: pool of real languages to use as a starting point for syllable generation - enrich: letters (or patterns) that you want to have a lot of - impoverish: letters (or patterns) that you want to have few of - remove: letters (or patterns) that you want NONE of

The following is an example config for orcish: "orc": { "pool": ["ru", "de"], "enrich": ["g", "k", "r"], "impoverish": ["w"], "remove": [] } This config results in a language based on Russian and German in which g, k and r appear often and w appears rarely. You can also use patterns (such as mom) instead of single letters and specify the same thing more than once (such as ["g", "g", "g"]) to enrich/impoverish even more.

Troubleshooting

Issue with PyQt5-sip import

bash pip install --user --upgrade PyQt5 pip install --user --upgrade PyQt5-sip

If you used previous versions of the program...

... and now get strange errors, it might be caused by changes in the core file structures from older versions. To remove all the old files and start anew, try running: bash gibberify --uninstall If this doesn't fix it, come back here and open an issue, copy-pasting the error message.

Advanced and additional info

To edit the configuration from the command line: bash gibberify --config Be careful not to screw up the json format!

If anything goes wrong, gibberify will open the config file to let you try and fix it. If that fails too, it will revert to defaults and save a backup of your broken configuration.

If you just changed some settings for the gibberish languages, you can simply re-build only the translation dictionaries: bash gibberify --rebuild-dicts

Syllables are generated (and later matched) using hyphenation rules from several languages at the same time for a few reasons: - generate reasonable outcome, in contrast to (for example) English alone. wardrobe and nightstand contain only one syllable? For real? - be more consistent, producing a more useful set of syllables that contain fewer weird strings that appear only once in the whole language. This is particularly useful for reverse translations.

Right now the gibberish dictionaries I'm "shipping" have settings that I arbitrarily decided. They sound much better now that they used to, but please, try out some stuff yourself and let me know if you find anything better!

This line of code sucks! AKA: Contributing

Do you want to change it? Feel free to fork and PR! For testing, you can also import gibberify as a module (this is now much easier and better!): ```python3 import gibberify

anything configuration related

conf = gibberify.Config() conf.edit() conf.write()

build dictionaries based on the config

gibberify.build(conf)

translate something

tr = gibberify.Translator('en', 'orc')

just call it to run a translation

tr('I love ALE!')

you can change attributes, and the translation updates accordingly

tr.textin = 'This is a new text!' tr.langout = 'gob' tr() ```


RESOURCES

Gibberify uses words taken from a streamlined version of wooorm/dictionaries (forked here) to generate new syllables, which are then used to convert real language into a wrangled mess of nonsense.

A pre-generated collection of syllables is hosted on gibberify-data, to expedite the installation. However, you're free to generate the syllables yourself from scratch by downloading the aforementioned words with --force-download.

Icons made by - Freepik from Flaticon - Good Ware from Flaticon

Owner

  • Name: Lorenzo Gaifas
  • Login: brisvag
  • Kind: user
  • Company: @gutsche-lab

PhD student at @gutsche-lab, doing computational stuff with cryo-ET data.

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 26
  • Total pull requests: 13
  • Average time to close issues: 21 days
  • Average time to close pull requests: 4 days
  • Total issue authors: 4
  • Total pull request authors: 3
  • Average comments per issue: 0.81
  • Average comments per pull request: 0.31
  • Merged pull requests: 13
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • brisvag (13)
  • mjtadema (10)
  • R7E (2)
  • coby6683 (1)
Pull Request Authors
  • brisvag (10)
  • mjtadema (2)
  • itsmarcy (1)
Top Labels
Issue Labels
enhancement (6) bug (4) help wanted (2) good first issue (1)
Pull Request Labels