Kaboobly Doo generator

Here is my Kaboobly Doo generator: kabooblydoo.appspot.com

Run properly, it should be able to generate grammatical sentences without any coherent meaning.

To demonstrate the power of the same, I showcase some great sentences it generated:

Harsh words are like programmed instructions, given to us when we are young and beautiful.

Preconceived notions are like sharp knives, once you throw them at somebody they can not teach you computer science or hardly anything else.

Every man should be far better neighbors and that an indissoluble law might be more conspicuous to all that took place, said, "On my word, you are doing!"

You are invited to try it out, and yes, Fork me on GitHub!

If you are interested in how this works, have a look at this and read on.


If you have seen my experiment with the iOS predictive keyboard, then it should convince you that this method is indeed a good way to generate convincing but Kaboobly Doo sentences.

Some usages of such an algorithm could be generate pronounceable strings, mimic spam to steganographically conceal data, or generating papers for conferences whose standards are, you suspect, too low.

Techniques involved include formal grammars and markov chains. We will discuss the later in this note.

For those who do not know, markov chains are a list of states equipped with their transition probabilities.

chain chain

From the given data, we generate a list of prefixes (which are our states) and a list of words that could have followed them. The more a word follows the prefix in the real data, the higher the chance of the transition to the inclusion of the word into the next state.

Suppose we are given the following data: Are modern calculus books Kaboobly Doo?

Feeding in the data into the chain generator with prefix length 22 gives the following table:

PrefixSuffix
Are
Aremodern
Are moderncalculus
modern calculusbooks
calculus booksKaboobly
books KabooblyDoo?
Kaboobly Doo?

Over here, there is only one possible state to which a particular state could transit. However, if we had much larger data, there could be more than two possible suffixes for the same prefix, in which case we could transit to any one of them at random determined the probability of their occurrence rates in the original text.

Once we generate the chain, we randomly choose an initial state and print the corresponding word and then transit to the next state by deleting the first word in the current state and appending a random word as explained above. We do this till we hit the word limit or run out of states.


I thank bobbym for inventing Kaboobly Doo and authoring The Blue book of bobbym quotes
Thanks to David for the yoda pic
#Probability #ComputerScience #JustForFun #ComputerSimulations #MarkovChains

Note by Agnishom Chattopadhyay
6 years ago

No vote yet
1 vote

  Easy Math Editor

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

  • Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
  • Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
  • Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. list

  1. numbered
  2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1

paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
    # 4 spaces, and now they show
    # up as a code block.

    print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3 2×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}

Comments

Eureka! You are a genius

Aditya Chauhan - 6 years ago

Log in to reply

Thanks, did you try this out?

It is just as I expected. Kaboobly doo is a human creation, it can not be mimicked by a mere machine. It requires emotion, divine inspiration and the human heart to produce real Kaboobly doo. All I can add to this is a quote from Lord Vader, "Don't be to be too proud of the random statements generated here, the power to generate nonsense is insignificant next to the power of human Kaboobly doo." There, let that be a lesson to all.

bobbym none - 5 years, 3 months ago

Log in to reply

actually, it is not impossible to improve upon this

Agnishom Chattopadhyay - 5 years, 3 months ago

Log in to reply

The generator or the Kaboobly doo?

bobbym none - 5 years, 3 months ago

Log in to reply

@Bobbym None I am sorry, I meant: It is possible to improve upon this

Agnishom Chattopadhyay - 5 years, 3 months ago

I am doing computational stuff now and blimey this seems interesting!

¨\ddot\smile

Krishna Ar - 6 years ago

Log in to reply

Great, what computaitional stuff are you doing?

Log in to reply

Stuff to do with linguistics (parsing of languages and sentence formation), so I guess this is quite relevant!

Krishna Ar - 6 years ago

Log in to reply

@Krishna Ar It is. Linguistics is quiet fascinating (except I hardly know anything about it)

Log in to reply

@Agnishom Chattopadhyay Other than the theory, its just CS

Krishna Ar - 6 years ago

Mapping goes from FnF_n to both Fn1 F_{n-1} and Fn2F_{n-2} , backward induction is a multiple of 9, has a smaller diameter than SS?

This is a contradiction. Thus y1=y2 y_1 = y_2 . What is the case that for k=3 k = 3 (proved in 1932) and F1=2×2k=2 F_1 = 2 \times 2^k = 2 . Do we know where it goes? Not really, it could go into any set, in particular AA. If it does not contain the element nn, then it cannot contain the element nn, then it cannot contain the element nn .

Calvin Lin Staff - 6 years ago

Log in to reply

What does this mean?! I guess this is machine generated kaboobly doo

Log in to reply

Right. I took the construction wiki, threw it in, and that's what I got.

Calvin Lin Staff - 6 years ago

Log in to reply

@Calvin Lin In that case, this is pretty impressive! :)

HA ha , amazing

heres a sentence i found

"I was slightly smarter than an apple"

Mvs Saketh - 6 years ago

Log in to reply

I am sorry, that was an original line from the source file. The blue book of bobbym quotes is the shortest book out there and when you use it to produce sentences, there is a possibility that a few quotes will be returned as is.

"Questions of existence are for philosophers. He was just stating the number 3 has meaning to him, 10^10 does not."

Harsh Shrivastava - 6 years ago

wished there were more gay men... That would not worry about such things. No one will see that you have done to make up the BSoD, you know it man. There are the same way that yesterday came and went so will they.

Do you all know the reason why yous will never succeed bahhhhbbbbyemm? bobbym: No why? Col Erich Von Hitler: Do you all know you are old and ugly, or even if you just think you are young and beautiful. Pick a great talent. The greatly talented assume that they are advertising beer, cars, awful music, girls or gyrating...

When the water is clear and perfectly still you can immediately apply it to your will. I suggest you delete the whole neighborhood. When I accidentally generated chlorine while fiddling with chemistry, I was attracted to counting and the geniuses assume divinity. He is a complete idiot."

He is a young person in his teens or younger: They will say,"Wow, how do you see why I do not answer them. Like or dislike are western concepts. I think February 14 is an illussion. We are being watched. M and m are the same thing. Keep annoying me and you'll

This is what I got! It's really funny, especially the Hitler part! Can anyone Guess what I put in that?

Sravanth C. - 6 years ago

Log in to reply

"We own none of it and because it is not mine I have no right to destroy it. It belongs to the big fella."

"Hahhahahhahahhahahahahha! Wolfram alpha is kaboobly doo! Alpha is a tool. It does not replace your brain! It supplements your brain. Now c'mon and do what Alpha could not. Friends come and go. You will make many more. But in the same way that yesterday came and went so will they."

"No one will see that you have grey hair on the circumference of an ellipse and came up with my own solution. I worked my own solution. I worked my own solution. I worked my own solution."

"Your human brain will not solve all problems. It is not a quadratic equation."

This is what I got.

Brown Fox - 5 years, 12 months ago

Sorry, unexpected error: pop from empty list :P

Nihar Mahajan - 6 years ago

Log in to reply

Read mine, it's very funny!

Sravanth C. - 6 years ago

ha

Steve Chen - 6 years ago

This was what I got when I dumped in Shakespear's Sonnet 17 (My favourite one of the first 58 sonnets I read)

false. The earth is larger and more massive than any bar of soap, transparent or not. I did not invent Experimental Mathematics. I am always brilliant! Eureka! I am not Jesus. When a guy is driving around aimlessly listening to awful sounds ( music? ) then he pulls up in front of my car? Col Erich Von Hitler: Do you feel bad about the fact that 6/3/2014 is gone? One thing at a digital computer. I worked on the internet. Do not seek a brazillian plastic surgeon, join a forum and tell everyone you are keeping active. Since I retired I feel like I have an Uncle Joe. When I was almost asphyxiated. All this while playing basketball, chess, stickball, football and fighting everyday. Mommym used to walk 2 miles to shop for food and at the time and he would use judo on me ( he is grown so great? I say he is an illussion Happy Valentines Day. Did you wish your Valentine a Happy day? The next did? seek and ye shall find If you cannot say something nice, do not belong to me. Unfortunately, many guys refused to comply and they ended up stealing most of

Venkata Karthik Bandaru - 5 years, 11 months ago

Log in to reply

Nice! The valentines thing is awesome! Check mine too. ¨\huge\ddot\smile

Sravanth C. - 5 years, 11 months ago

Log in to reply

Yeah, lol.

Venkata Karthik Bandaru - 5 years, 11 months ago

I am afraid, that is not what you'Re supposed to get upon dumping sonnet 17. You forgot to click the custom text radio button in the first place?

Can you please try it again?

This randomizer works on statistical probability distributions of word pairs (or n-tuples) and I do not think the sonnet is large enough to produce some interesting results.

Agnishom Chattopadhyay - 5 years, 11 months ago

@Agnishom Chattopadhyay

can you please tell me which CS language or programme helps to solve math problems numerically (such as solving an unsolvable differential equation numerically)

or getting a reasonable approximation for fourier series , etc

i heard that mathematica can be used but i never really understood where we can get it

Mvs Saketh - 6 years ago

Log in to reply

How about you use sage? There is a full book on Differential Equations with sage.

Also, there is nothing wrong with programming up the algorithms on your own. That should be a good exercise and should help understand them better.

Mathematica is not available for free (unless obtained illegally) because it is proprietary software.

@Mvs Saketh

Log in to reply

oh, in that case, i shall learn sage, thank you very much :)

Mvs Saketh - 6 years ago

What languages do you know ?

Log in to reply

none, i took biology in 12, i should have learned some CS side by side though

Mvs Saketh - 6 years ago

Log in to reply

@Mvs Saketh Yep, which one of biology/cs do you think I have taken in school?

Log in to reply

@Agnishom Chattopadhyay no, i like much of bio, so i am glad i took it, but i also wanted to know some CS

Mvs Saketh - 6 years ago

Log in to reply

@Mvs Saketh I took bio in Class XII too, but that never let me down with CS :)

Log in to reply

@Agnishom Chattopadhyay that is a very good thing, no problem, i will learn it now

Mvs Saketh - 6 years ago

@Mvs Saketh What?! You were a Bio student ? So were you a PCMB student or just a PCB student ?

Log in to reply

@A Former Brilliant Member obviously PCMB :)

Mvs Saketh - 6 years ago

Log in to reply

@Mvs Saketh Haha , that was a silly question that I asked . I forgot you gave JEE this year .

Also try learning Python , Python sort of rules over B'ant :P

And see this too .

Log in to reply

@A Former Brilliant Member thanks, i will learn it too

Mvs Saketh - 6 years ago

This stuff is awesome!

Raven Herd - 5 years, 11 months ago

what's the benefit of it ? (or any use ?)

A Former Brilliant Member - 4 years, 6 months ago

Log in to reply

Just for fun. Also check out this

Agnishom Chattopadhyay - 4 years, 6 months ago

Cool! I hope you won't mind me sharing your website with my friends !\stackrel{{\Large\wedge\,\wedge}}{{\Large\smile}}

Log in to reply

That would be an honor, thanks!

×

Problem Loading...

Note Loading...

Set Loading...