r/pythontips • • Mar 12 '22

Module Are there any Python modules to create gibberish words

I want to create a program that creates gibberish words that are fake but sound like they could be real any modules for this?

30 Upvotes

18 comments sorted by

19

u/Foreign_Jackfruit_70 Mar 12 '22

string and random ?

-3

u/[deleted] Mar 12 '22

that’s not gibberish that’s just random english words. I want gibberish words not words that are in the dictionary

24

u/Foreign_Jackfruit_70 Mar 12 '22

Erm. . . No. string and random. Pick random letters from string. The results definitely won't be in the English dictionary.

8

u/[deleted] Mar 12 '22

If you can somehow obtain a word list full of the (I assume) English language broken up by syllabi then strings could be indexed and mashed together with Python for your gibberish.

5

u/BuckWildBilly Mar 12 '22 edited Mar 12 '22

æntiˌdɪsəˌstæblɪʃmənˈtɛəriəˌnɪzəm

10

u/talmadgeMagooliger Mar 12 '22

4

u/ray10k Mar 12 '22

OP, if you're looking for "something that generates nonsense words that can still be pronounced by an English speaker," this looks like a pretty good option.
Alternatively, you could look into Markov chains, tracking the frequencies of certain letter combinations in the English language. Not sure if there's a module for that out there, but it wouldn't surprise me.

2

u/[deleted] Mar 12 '22

thanks actually stumbled upon the gibberish module and its pretty much exactly what i need!

5

u/[deleted] Mar 12 '22

Not sureish broborish

3

u/[deleted] Mar 12 '22

fuckity fucksake that suckiesh

4

u/AJohnnyTruant Mar 12 '22

You’re asking something that’s way more complicated than you realize. Making a fake language sound convincingly like another language is insanely scholastic. People here can recommend how to string characters together. But making something sound like language is really hard.

1

u/[deleted] Mar 12 '22

i see what you mean with people talking about the strings, regrex etx that would just produce pure gibberish and randomness which rant wasn’t what i was looking for frfr

0

u/[deleted] Mar 12 '22

i’ve been programming for years lmfao everything in programming is more difficult then it sounds. It was a simple question with a simple answer “yes i know”, “i dont know but here’s a suggestion” or just simply not responding

that being said its actually incredibly easy to get the results I need with the gibberish module because all i need is it to generate a few words not a language i just wanted the words to sound like they could be real like Psuedowords normally do

15

u/maggotbrain777 Mar 12 '22

Python-lorem

Description:

Lorem ipsum generator.

In publishing and graphic design, lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content.

The lorem module provides a generic access to generating the lorem ipsum text from its very original text:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

1

u/Illustrious-End-9184 Mar 12 '22

I am just trying to learn basic Python…. I wish I could help

2

u/[deleted] Mar 12 '22

ya good man and im in college for programming and my best language is python so just DM me if you have any questions if i can help i will!

welcome to the world of programming man! once you learn you’ll just find everyday things you want to build a project for🤣 i built a youtube mp3/mp4 downloader hart because i wanted my own 💀

2

u/[deleted] Mar 12 '22

[removed] — view removed comment

2

u/[deleted] Mar 12 '22

i seem that but its not really what i need for this program, that being sad the documentation for that definitely got saved because the faker library looks dope asf