You’re right. I should have put a little smiley face at the end of my post to indicate that I was being facetious.
Isn’t that exactly how a Chomskybot works?
Nah, Chronos, the Chomskybot described in Chas.E’s link (the only one I’ve ever seen described) says it’s got four fairly-short lists of phrases. It picks one from each, slaps 'em together, and that’s a sentence. The advantage of this over Garble is that you’re guaranteed grammatically-correct sentences if you select the lists correctly, but a Garble of Chomsky’s works would probably be more surprising in its output.
Garble starts by taking a text file, and counting the word triplets. The previous sentence has word triplets “Garble starts by,” “starts by taking,” “by taking a,” etc… It picks a word at random, then picks a second word at random, but which, in the original text, followed the first word at some point. For the third word, it’s got a list of all the two-word combinations, and the third words that follow each combo, and it picks randomly from that list. Then, the second word becomes the first, the third word becomes the second, and it picks a new third word just as above.
The “trick” to Garble is that in a large text, there tend to be lots of common two-word combinations that appear over and over, but with different words on each end. Two phrases, “cat in the hat” and “man in the moon” could become “cat in the moon” or “man in the hat,” or, of course, either of the two original examples. Both doublets, “cat in” and “man in” only have one third-word possibility: “the”. But the doublet “in the” has two possible third words: “hat” and “moon”, and Garble would choose randomly.
If you were to do four words, instead of three, there’d be a lot less garbling going on, since there aren’t nearly as many three-word combinations floating around in a lot of texts. If you drop it to two words, the output becomes much more like gobbledegook.
I found my code. At least, early code. It had problems with recognizing when it was inside a set of quotes or parentheses. What follows is a sample. I took about 37 Kbytes of Polycarp’s writing from his Why are Christians’ ideas of God erroneous? thread and Garbled them. Here are just a couple of paragraphs:
Here’s some Garbling from my own The Economic Effects of a Psoriasis Cure article:
Great, now I’m having nostalgia for the long-ago days when all I had to spend my time on was silly stuff like this.
DaveW, did you program before or after Lloyd Burchill’s “Deconstructor”?
I had mucho fun with that in the early 90s. Oh, for the good ol’ days.
You mean this, labradorian?
Never heard of it before now. What’s it do? Garble-type stuff? The blurb at that link isn’t too specific.
I wrote the first version of Garble in the late 1980’s, shortly after reading an article on Travesties, which do what Garble does, except on the letter level, not the word level (Travesty programs can create non-English words, as well as truly horrid non-grammatical sentences).