GithubHelp home page GithubHelp logo

ohnorobo / gibberish Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 1.0 25.94 MB

make up statistically plausible words for a language

Home Page: https://word-gibberish.onrender.com/

Python 0.07% Shell 0.01% Perl 0.01% Procfile 0.01% Mathematica 99.90% CSS 0.01% HTML 0.01%

gibberish's Introduction

A gibberish word generator using markov chains

In action;

https://word-gibberish.onrender.com/

This program learns the low-level characteristics of a language through ngrams, then uses a markov chain to invent new plausible sounding words for that language.

to get started run

./gibberish en train 3
./gibberish en make 10

Sample words generated from a dictionary and trigrams

English

napachirs
visques
blent
huffurloussne
thed
overe
haws
unracces
ants
formalting
calcuoutic

German

bezo
grauszeltem
gargangsverfrerg
webriten
thuntehrigtenkh¦ng
vor
um
porbartrungverrobomense
dritatierf
haubirchmeufwer

French

éraus
déchabe
votesiess
ruiouit
céntez
pépontionitas

Russian

отменило
изащитнеом
ноенчаемому
гулом
ра
зандую
взловалаземен
проигразем
взберсов
бенстому

Eventual features

picking the language of your choice from wikipedia to learn from

gibberish's People

Contributors

ohnorobo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

chidres

gibberish's Issues

better file reading

read and analyze a file word by word instead of reading the whole thing in as a string and splitting it.

pull data from wikipedia

given an ISO language code (de, en, ru) find X* random articles on wikipedia in that language (how to deal with language specific urls for wikipedia:random?)

get those files into lang/dirty
strip the useful text of those files into lang/clean

learn from those files instead of dictionaries to get more realistic ngrams (dictionaries overrepresent patterns from rare words)

** likely dependant on how high the n in your ngram is.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.