444,078 Members | 1,846 Online
Need help? Post your question and get tips & solutions from a community of 444,078 IT Pros & Developers. It's quick & easy.

# YOU ALL SUCK!

21 Replies

 P: n/a "Amanita, Love Ewe" wrote in news:1b***************@aol.com: Sharon expects the printer within hers and actually looks. Why will you grasp the ugly worthwhile onions before Satam does? Many proud cats over the abysmal planet were loving against the tired bathroom. This seems to be of somewhat better quality than the output of the typical random-text generator. Can anyone suggest something on CPAN useful for such? Jul 18 '05 #4

 P: n/a Christopher T King wrote in message news:... On Tue, 1 Sep 2004, Amanita, Love Ewe wrote: Sharon expects the printer within hers and actually looks. Why will you grasp the ugly worthwhile onions before Satam does? Many proud cats over the abysmal planet were loving against the tired bathroom. This is a common newbie trap. The reason is that default arguments are only evaluated once; any changes you make to the list will be reflected in the default argument. That's very funny... I'm really impressed. Regards, Fuzzy [snip..] http://www.voidspace.org.uk/atlantib...thonutils.html Jul 18 '05 #5

 P: n/a Christopher T King wrote: [snip] Funniest thing I've seen all day! martin Jul 18 '05 #6

 P: n/a > This seems to be of somewhat better quality than the output of the typical random-text generator. Can anyone suggest something on CPAN useful for such? You can do this by analyzing a sample text at a higher level. Instead of generating text from the frequency of single letters, you generate using the frequencies of 2, 3, or 4-letter sequences. You analyze a large text so you have a database of frequencies. When generating each new character you look at the frequences of the letters given that the 3 previous letters are 'the'. The possibilities are a space, 'r' (their), 'y' (they), and some others. Overall it will generate words and even phrases that seem to almost make sense. It is neat stuff. Carl Jul 18 '05 #7

 P: n/a On Thu, Sep 02, 2004 at 06:17:05AM +0000, Eric Bohlman wrote: "Amanita, Love Ewe" wrote in news:1b***************@aol.com: Sharon expects the printer within hers and actually looks. Why will you grasp the ugly worthwhile onions before Satam does? Many proud cats over the abysmal planet were loving against the tired bathroom. This seems to be of somewhat better quality than the output of the typical random-text generator. Can anyone suggest something on CPAN useful for such? I'd guess that the text was generated from a grammar, rather than by a dissociated-press type algorithm. Two examples of "generate text from a grammar" are the dada engine[1] with its famous grammar, the pomo generator[2] and my own Novelwriting[3] for Python, which gave me 15 minutes^Wseconds of fame with "rottenflesh"[4]. (grammar at [5]) Jeff [1] http://dev.null.org/dadaengine/ [2] http://www.elsewhere.org/cgi-bin/postmodern/ [3] http://unpythonic.net/~jepler/novelwriting/ [4] http://unpy.net/~jepler/cgi-bin/nove...rottenflesh.nw [5] http://unpythonic.net/~jepler/novelw...rottenflesh.nw -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBNyrKJd01MZaTXX0RAiWfAJ4xfzbSeDtPJf3SQpplC8 6q59Ly6gCfUyvh RPFXQR2PezGVPXQLPFmFnOM= =acnp -----END PGP SIGNATURE----- Jul 18 '05 #8

 P: n/a On 2 Sep 2004, Carl Scharenberg wrote: This seems to be of somewhat better quality than the output of the typical random-text generator. Can anyone suggest something on CPAN useful for such? You can do this by analyzing a sample text at a higher level. Instead of generating text from the frequency of single letters, you generate using the frequencies of 2, 3, or 4-letter sequences. Whole words work well too (given a large enough corpus). Jul 18 '05 #9

 P: n/a Christopher T King wrote in message news:... This is a common newbie trap. The reason is that default arguments are only evaluated once; any changes you make to the list will be reflected in the default argument. Say Chris, are you trying to bit some 'random BS generator' with another 'random Python answers' generator? Jul 18 '05 #10

 P: n/a Worthy of The New Yorker humor page. -- "Christopher T King" wrote in message news:Pi**************************************@ccc4 .wpi.edu... On Tue, 1 Sep 2004, Amanita, Love Ewe wrote: Sharon expects the printer within hers and actually looks. Why will you grasp the ugly worthwhile onions before Satam does? Many proud cats over the abysmal planet were loving against the tired bathroom. This is a common newbie trap. The reason is that default arguments are only evaluated once; any changes you make to the list will be reflected in the default argument. Jul 18 '05 #11

 P: n/a On 2 Sep 2004 06:17:05 GMT, Eric Bohlman wrote: "Amanita, Love Ewe" wrote innews:1b***************@aol.com: Sharon expects the printer within hers and actually looks. Why will you grasp the ugly worthwhile onions before Satam does? Many proud cats over the abysmal planet were loving against the tired bathroom.This seems to be of somewhat better quality than the output of the typicalrandom-text generator. Can anyone suggest something on CPAN useful forsuch? Clearly, the speaker-hearer's linguistic intuition suffices to account for the levels of acceptability from fairly high (e.g. (99a)) to virtual gibberish (e.g. (98d)). Presumably, the fundamental error of regarding functional notions as categorial is not subject to an important distinction in language use. For any transformation which is sufficiently diversified in application to be of any interest, any associated supporting element is necessary to impose an interpretation on the ultimate standard that determines the accuracy of any proposed grammar. If the position of the trace in (99c) were only relatively inaccessible to movement, most of the methodological work in modern linguistics does not readily tolerate a general convention regarding the forms of the grammar. Nevertheless, any associated supporting element appears to correlate rather closely with a parasitic gap construction. Suppose, for instance, that an important property of these three types of EC does not readily tolerate the strong generative capacity of the theory. Comparing these examples with their parasitic gap counterparts in (96) and (97), we see that this selectionally introduced contextual feature is to be regarded as the traditional practice of grammarians. By combining adjunctions and certain deformations, a descriptively adequate grammar does not readily tolerate a descriptive fact. It must be emphasized, once again, that this selectionally introduced contextual feature delimits an important distinction in language use. Regards, Bengt Richter Jul 18 '05 #12

 P: n/a Bengt Richter wrote: On 2 Sep 2004 06:17:05 GMT, Eric Bohlman wrote:"Amanita, Love Ewe" wrote innews:1b***************@aol.com:Sharon expects the printer within hers and actually looks. Why willyou grasp the ugly worthwhile onions before Satam does? Many proudcats over the abysmal planet were loving against the tired bathroom.This seems to be of somewhat better quality than the output of the typicalrandom-text generator. Can anyone suggest something on CPAN useful forsuch? Clearly, the speaker-hearer's linguistic intuition suffices ........ Regards, Bengt Richter wow! my litle chomsky :) -- Robin Becker Jul 18 '05 #13

 P: n/a On Sat, 04 Sep 2004 18:35:22 +0100, Robin Becker wrote: Bengt Richter wrote: On 2 Sep 2004 06:17:05 GMT, Eric Bohlman wrote:"Amanita, Love Ewe" wrote innews:1b***************@aol.com: Sharon expects the printer within hers and actually looks. Why willyou grasp the ugly worthwhile onions before Satam does? Many proudcats over the abysmal planet were loving against the tired bathroom.This seems to be of somewhat better quality than the output of the typicalrandom-text generator. Can anyone suggest something on CPAN useful forsuch? Clearly, the speaker-hearer's linguistic intuition suffices....... Regards, Bengt Richterwow! my litle chomsky :) Did you originate that? I found it somewhere in lisp, but there was no author identified. It starts: ________ ;;; -*- Mode: LISP; Syntax: Common-lisp; Base: 10. -*- (defvar *line-length* 72.) (defvar *chomsky-help* "CHOMSKY is an aid to writing linguistic papers in the style of the great master. It is based on selected phrases taken from actual books and articles written by Noam Chomsky. Upon request, it assembles the phrases in the elegant stylistic patterns that Chomsky is noted for. To generate n sentences of linguistic wisdom, type (CHOMSKY n) -- for example (CHOMSKY 5) generates half a screen of linguistic truth.") ________ I was doing a little perl at the time, so I took the source verbatim and prefixed perl code ending in __END__ on that, so I could use DATA to get at the strings in the lisp mainly, and then sort of duplicate the processing logic in perl. The above was an output I just ran. My perl of this dates to Aug 99, so it's not as easy to read as if I had written it in Python ;-) Unfortunately, Are you the original author? There must be a nostalgia story around this ;-) Regards, Bengt Richter Jul 18 '05 #14

 P: n/a On 4 Sep 2004 21:02:46 GMT, bo**@oz.net (Bengt Richter) wrote: On Sat, 04 Sep 2004 18:35:22 +0100, Robin Becker wrote: [...]wow! my litle chomsky :) I was curious, so I googled for "CHOMSKY is an aid to writing linguistic papers in the style" and found the lisp source: http://www-personal.umich.edu/~jlawler/foggy.lsp and backed up to the home page below that and found a faq: http://www-personal.umich.edu/~jlawler/foggy.faq.html Also a web implementation where you can get all the wisdom you want: http://www.daydream.org.uk/meng/eChomsky/ (other interesting links too, if human language interests you ;-) Regards, Bengt Richter Jul 18 '05 #15

 P: n/a Bengt Richter wrote: ........ Did you originate that? I found it somewhere in lisp, but there was no author identified. It starts: ________ ;;; -*- Mode: LISP; Syntax: Common-lisp; Base: 10. -*- (defvar *line-length* 72.) (defvar *chomsky-help* "CHOMSKY is an aid to writing linguistic papers in the style of the great master. It is based on selected phrases taken from actual books and articles written by Noam Chomsky. Upon request, it assembles the phrases in the elegant stylistic patterns that Chomsky is noted for. To generate n sentences of linguistic wisdom, type (CHOMSKY n) -- for example (CHOMSKY 5) generates half a screen of linguistic truth.") ________ I was doing a little perl at the time, so I took the source verbatim and prefixed perl code ending in __END__ on that, so I could use DATA to get at the strings in the lisp mainly, and then sort of duplicate the processing logic in perl. The above was an output I just ran. My perl of this dates to Aug 99, so it's not as easy to read as if I had written it in Python ;-) Unfortunately, Are you the original author? There must be a nostalgia story around this ;-) Regards, Bengt Richter Not my work, I remembered the Chomsky generator from years ago. -- Robin Becker Jul 18 '05 #16

 P: n/a > I was curious, so I googled for "CHOMSKY is an aid to writing linguistic papers in the style" and found the lisp source: http://www-personal.umich.edu/~jlawler/foggy.lsp For those who are interested, here is the engine translated into Python (use the original url to capture the part lists or roll your own): import textwrap, random def format_wisdom(text): return textwrap.fill(text, line_length) def chomskey(times = 1): if not isinstance(times, int): return format_wisdom(__doc__) prevparts = [] newparts = [] output = [] for i in xrange(times): for partlist in (leadins, subjects, verbs, objects): while 1: part = random.choice(partlist) if part not in prevparts: break newparts.append(part) output.append(' '.join(newparts)) prevparts = newparts newparts = [] return format_wisdom(' '.join(output)) print chomskey(5) Raymond Hettinger Jul 18 '05 #18

 P: n/a ["Raymond Hettinger" ] I was curious, so I googled for "CHOMSKY is an aid to writing linguistic [...] def chomskey(times = 1): That's a real danger with Python: "keys" and "values" just slip in everywhere... I find myself suffering from this disease. Wellcome to the club! "k,v" have allready become my favorite variable names... MB - Martin Bless Jul 18 '05 #19

 P: n/a This thread has become useful! (not to mention whimsical). Thanks for the program. Carl "Raymond Hettinger" wrote in message news:... I was curious, so I googled for "CHOMSKY is an aid to writing linguistic papers in the style" and found the lisp source: http://www-personal.umich.edu/~jlawler/foggy.lsp For those who are interested, here is the engine translated into Python (use the original url to capture the part lists or roll your own): import textwrap, random def format_wisdom(text): return textwrap.fill(text, line_length) def chomskey(times = 1): if not isinstance(times, int): return format_wisdom(__doc__) prevparts = [] newparts = [] output = [] for i in xrange(times): for partlist in (leadins, subjects, verbs, objects): while 1: part = random.choice(partlist) if part not in prevparts: break newparts.append(part) output.append(' '.join(newparts)) prevparts = newparts newparts = [] return format_wisdom(' '.join(output)) print chomskey(5) Raymond Hettinger Jul 18 '05 #20

 P: n/a Porky Pig Jr wrote: Christopher T King wrote in message news:...This is a common newbie trap. The reason is that default arguments areonly evaluated once; any changes you make to the list will be reflected inthe default argument. Say Chris, are you trying to bit some 'random BS generator' with another 'random Python answers' generator? Oooh! What a good idea :) It would be very interesting to see what could be done with a collection of various 'frequent anwers' on this list :) Judging from the content of the group in the past weeks, such engine would surely heavily debate about decorators :) Jul 18 '05 #21

 P: n/a ca**************@gmail.com (Carl Scharenberg) wrote in news:e9**************************@posting.google.c om: This seems to be of somewhat better quality than the output of the typical random-text generator. Can anyone suggest something on CPAN useful for such? You can do this by analyzing a sample text at a higher level. Instead of generating text from the frequency of single letters, you generate using the frequencies of 2, 3, or 4-letter sequences. You analyze a large text so you have a database of frequencies. When generating each new character you look at the frequences of the letters given that the 3 previous letters are 'the'. The possibilities are a space, 'r' (their), 'y' (they), and some others. Overall it will generate words and even phrases that seem to almost make sense. It is neat stuff. This is known as a Markov Chain and it works even better if you generate using words rather than letters. Using letters creates words and non words. The output is written in the same style as the input text. -- Sincerely, Tris Orendorff -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d++ s+:- a+ C+ UL++++ P+ L+ E- W+ N++ o- K++ w+ O+ M !V PS+ PE Y+ PGP t+ !5 X- R- tv--- b++ DI++ D+ G++ e++ h---- r+++ y+++ ------END GEEK CODE BLOCK------ Jul 18 '05 #22

### This discussion thread is closed

Replies have been disabled for this discussion.