Jump to content

Dissociated press

From Wikipedia, the free encyclopedia

Dissociated pressis aparody generator(acomputer programthat generatesnonsensicaltext). The generated text is based on another text using theMarkov chaintechnique. The name is a play on "Associated Press"and the psychological termdissociation(althoughword saladis more typical of conditions likeaphasiaandschizophrenia– which is, however, frequently confused withdissociative identity disorderby laypeople).

An implementation of the algorithm is available inEmacs.Another implementation is available as aPerlmodule inCPAN,Games::Dissociate.[1]

The algorithm

[edit]

The algorithm starts by printing a number of consecutive words (or letters) from the source text. Then it searches the source text for an occurrence of the few last words or letters printed out so far. If multiple occurrences are found, it picks a random one, and proceeds with printing the text following the chosen occurrence. After a predetermined length of text is printed out, the search procedure is repeated for the newly printed ending.

Considering that words and phrases tend to appear in specific grammatical contexts, the resulting text usually seems correct grammatically, and if the source text is uniform in style, the result appears to be of similar style and subject, and takes some effort on the reader's side to recognize as not genuine. Still, the randomness of the assembly process deprives it of any logical flow - the loosely related parts are connected in a nonsensical way, creating a humorously abstract, random result.

Examples

[edit]

Here is a short example of word-based Dissociated Press applied to theJargon File:[2]

wart: n. A small, crocky feature that sticks out of an array (C has no checks for this). This is relatively benign and easy to spot if the phrase is bent so as to be not worth paying attention to the medium in question.

Here is a short example of letter-based Dissociated Press applied to the same source:

window sysIWYG: n. A bit was named aften /bee´t@/ prefer to use the other guy's re, especially in every cast a chuckle on neithout getting into useful informash speech makes removing a featuring a move or usage actual abstractionsidered interj. Indeed spectace logic or problem!

History

[edit]

The dissociated press algorithm is described inHAKMEM(1972) Item #176. The name "dissociated press" is first known to have been associated with the Emacs implementation.

Brian Hayes discussed a Travesty algorithm inScientific Americanin November 1983.[3]The article provided a garbledWilliam Faulknerpassage:

When he got on the table, he come in. He never come out of my own pocket as a measure of protecting the company against riot and bloodshed. And when he said. "You tell me a bus ticket, let alone write out no case histories. Then the law come back with a knife!"

Hugh Kenner and Joseph O'Rourke ofJohns Hopkins Universitydiscussed theirfrequency table-based Travesty generator for microcomputers inBYTEin November 1984. The article included theTurbo Pascalsource for two versions of the generator, one using Hayes' algorithm and another usingClaude Shannon's Hellbat algorithm.[3]Murray Lesser offered acompiled BASICversion in the magazine in July 1985,[4]in September 1985 Peter Wayner offered a version that usedtree data structuresinstead of frequency tables,[5]and in December 1985 Neil J. Rubenking offered a version written inTurbo Pascalthat stored frequency information in aB-tree.[6]

See also

[edit]

References

[edit]
  1. ^Burke, Sean M.and Avi Finkel.Games::Dissociate distribution in CPAN.Retrieved 2012-11-13. Most recent release: 2010, "v1.0".
  2. ^Raymond, Eric S. (2003-12-29)."Dissociated Press".Jargon File 4.4.7.Retrieved2007-04-10.
  3. ^abKenner, Hugh; O'Rourke, Joseph (November 1984)."A Travesty Generator for Micros".BYTE.p. 129.Retrieved23 October2013.
  4. ^Lesser, Murray (July 1985)."Travesty Revisited".BYTE.p. 163.Retrieved27 October2013.
  5. ^Wayner, Peter (September 1985)."Build a Travesty Tree".BYTE.p. 183.Retrieved27 October2013.
  6. ^Rubenking, Neil J. (December 1985)."Travesty with Database".BYTE.p. 161.Retrieved28 October2013.
[edit]

This article is based in part on theJargon File,which is in the public domain.