Slashdot Mirror


Can You Create An Intelligent Haiku Generator?

BlueCalx- writes: "dotcomma has created a new programming contest: this time, to determine whether or not someone can create a program that can automatically parse an RDF file and generate a haiku based on its headlines or stories. Slashdot users such as 575 have essentially been doing the same thing for months: now, it's time to see if a computer program can do the same thing *g*. After witnessing the success of the AI Bots challenge a few months ago, it'll be interesting to see if a program like this is possible." Anyone who can generate intelligible, germane haiku from headlines without human intervention has my respect -- it's a lot thornier than it sounds.

211 comments

  1. Re:Difficult by Anonymous Coward · · Score: 1

    haiku es fácil
    si usamos español
    usted conviene?

    (haiku is easy
    if we utilize spanish
    do you acquiesce?)

  2. umm...that was 5-5-5 by Anonymous Coward · · Score: 1

    thank god i didn't go to cal-tech.

  3. Would basho appreciate the effort? by Anonymous Coward · · Score: 1

    Would Basho approve?
    I have written four stanzas.
    Moderate me up.

    Haiku by machine.
    Unfeeling silicon chip.
    Basho turns in grave.

    Clever perl script hacks.
    Create poem making code.
    Basho comes around.

    Basho buys PC.
    Installs Linux and writes code.
    Source is poetry.

    Elegant program.
    Basho's work makes Bill Gates cry.
    GPL Haiku.

  4. Haiku by lars · · Score: 1

    Post only Haiku
    Get moderated to 5
    Better than 'first post'

    1. Re:Haiku by emerson · · Score: 1

      Damn it all to hell.
      Moderators have mercy.
      Meant to drop plus-one.



      --

    2. Re:Haiku by rodentia · · Score: 1

      Yes and no. Your joke analogy for haiku is a little contrived and reductive. A proper haiku requires the use of a keireji or "breaking word" which jars the sensibilities of the reader and establishes, like a verbal slap, an emotional shift within the poem. Given the constraints of the form, it just may be possible to develop an extensive set of pairs between words possibly appearing within the metadata and a selection of quality keireji, dropping out to a random selection in the absence of a match. It may be possible to get closer to "half-fast" haiku than it would seem at first blush. The aporia and semantic leaps required to achieve a proper sense of evanescence and engàgement also take up a good bit of slack.

      --
      illegitimii non ingravare
    3. Re:Haiku by gwalla · · Score: 1
      Finally, a post
      There can be no contesting...
      Haikus on-topic!

      Just what we needed
      A chance for trolls to show off
      31337 h4!xU sk!11z


      ---
      Zardoz has spoken!
      --
      Oper on the Nightstar
    4. Re:Haiku by gwalla · · Score: 1
      Haikus are not easy
      They are very difficult to
      write. Baka baka.

      Inspired AC
      It's funny because it's true
      Moderate this up!


      ---
      Zardoz has spoken!
      --
      Oper on the Nightstar
    5. Re:Haiku by aozilla · · Score: 1

      the poster, whoring trying to gain 8 karma replies to himself

      --
      ok then your [sic] infringing on my copyright! Could you as [sic] me next time before STEALING my comments for your own?
    6. Re:Haiku by aozilla · · Score: 1

      the replier, brain-dead
      forgets how to break-lines, and then
      forgets also how to make a haiku
      which he actually didn't even know in the first
      place, just figured it had something to do with
      5
      7
      5

      --
      ok then your [sic] infringing on my copyright! Could you as [sic] me next time before STEALING my comments for your own?
    7. Re:Haiku by luckykaa · · Score: 1

      Moderators Here, Touch only the abusive. Your sig insults them.

    8. Re:Haiku by Fishstick · · Score: 1

      Dude, you are awesome!

      --

      There is much cruelty in the universe, John.
      Yeah, we seem to have the tour map.

    9. Re:Haiku by AshPattern · · Score: 1

      Writing a haiku
      Recursively on haikus
      Match this, computer...

    10. Re:Haiku by emerson · · Score: 2

      (*grin)

      That's damned amusing.
      I could have taken offense.
      But AC's kick ass.

      --

    11. Re:Haiku by hypergeek · · Score: 2

      This guy really rocks
      But his job will be replaced
      By a small shell script

      --
      Stay up hacking each weekend. Sleep is for the week.
    12. Re:Haiku by 575 · · Score: 3

      No way to be sure
      He is quaint but cumbersome...
      DOS batch file perhaps?

    13. Re:Haiku by 575 · · Score: 4

      The poet, eager
      Posting two haiku at once
      Forgets to split them

  5. Perl by whoop · · Score: 1

    Who uses Perl now?
    Python is da bomb, for sure.
    Die Perl, die, die, die!

  6. Re:It's like this by emerson · · Score: 1

    Please to let me submit a patched version of this:


    Computer haiku:
    Poetic rhythm down pat,
    But lacking a soul.

    --

  7. hmmm? by MassacrE · · Score: 1

    Intelligent haiku??
    DUDE, I have had one of these
    for months, no - YEARS now

  8. I'm working on it by crayz · · Score: 1

    I already created 575. I'm working on making an intelligent one now though.

  9. Re:Intelligent filters - agents? by wampus · · Score: 1

    Argh! No line breaks here.
    Unintelligable mess.
    Preview is your pal.

  10. Teach me to post too quickly... by thomasd · · Score: 1

    Verbal Diarrhoea
    I cannot count syllables
    Six on the first line :(

  11. Re:New form by LetterJ · · Score: 1
    Then there's this form (bad example hacked in a few seconds, my poetry professor would gag on this):

    Written words on a bathroom wall,
    staring at the letters,
    ink stained tiles beg you to call.
    You scratch the number
    in your palm.

    Get to a phone and call her right now.

    See if you can guess the form. The content is a clue.

    LetterJ

  12. Re:Perl Haiku Contest by Ed+Avis · · Score: 1

    Why?

    --
    -- Ed Avis ed@membled.com
  13. Re:Perl Haiku Contest by Ed+Avis · · Score: 1

    I can't think of any examples right now, but I'm sure plenty will come up next time I watch a wildlife or 'geography' type programme featuring animals or some ancient tribe. Which will probably not be for a while :-)

    --
    -- Ed Avis ed@membled.com
  14. Re:Computer-Related Haiku by Firefalcon · · Score: 1

    Sorry, could we have a translation?

  15. Haiku? by stirge · · Score: 1

    Since when are Haiku's Intelligent?!

  16. Yay by Paradox · · Score: 1

    This challenge is great, but too bad I have no skills, good luck to entrants! Err, um, okay, nevermind, that sucked, I'll uh, go back into my cave now..


    __

    --
    Slashdot. It's Not For Common Sense
    1. Re:Yay by gwalla · · Score: 1

      No, that was quite good
      But next time format better
      Or the joke is lost

      And, just because I can...

      Carmel-by-the-Sea
      Home of Clint Eastwood
      Do you feel lucky?


      ---
      Zardoz has spoken!
      --
      Oper on the Nightstar
  17. Re:Hmm by mutende · · Score: 1
    157 +++ do i = 1 while tem.i ""
    8 +++ dummy = InitVocab()
    Error 34 running "/home/mattc/bin/Haiku.rexx", line 157: Logical value not 0 or 1

    Oops -- HTML-formatting ate some <> operators. :-(

    I've put a copy of the original script here...


    --

    --
    Unselfish actions pay back better
  18. Re:Computer-Related Haiku by curveclimber · · Score: 1

    That's cool. Small web, huh?

    While, because of the non-traditional subject matter, these would probably be considered senryu (which has its own long tradition), I posted the three that I thought best approached the spirit of haiku.

    For what it's worth, you can tell her that.

  19. Re:Perl Haiku Contest by Kimble · · Score: 1
    How about "I caught two fish"? Or "I sheared two sheep"? I don't think there's anything horribly wrong with the singular and plural of a word in English being the same. Uncommon, yes, but not bad.

    It also seems to me that English loanwords try to preserve spelling first and worry about pronunciation later; also, more recent loanwords are pronounced closer to their foreign pronunciation.* This leads to haiku/haiku, at least for the time being. Once a loanword's been in common use for a while, the English plural appears. Then, the -s becomes preferred. Finally, the foreign plural is dropped in English. Some examples from m-w.com:

    • Foreign only: haiku, alumnus
    • Foreign then English: radix, cactus, stylus, ninja
    • English then foreign: index, appendix
    • English only: soprano
    With that being said, however, you'll be right in the long run. Some dictionaries (American Heritage, for one) already have "haikus".

    I personally have no problem with "haikus" -- actually, I was going to use "haikus" in post 54 until I remembered that Spanish adjectives reflect number. I was just going for the (+1, Funny) in my "Because!" post -- that song cracked me up, for some reason.

    Enough rambling for now. :^)
    --Kimble

    * At least Standard American English does. Your kilometrage may vary. For example, SAE speakers rhyme "Paris" with "ferrous", but rhyme "Versailles" with the first two syllables of "bursitis" (i.e. "the French way, or close enough").

    --

    --
    ..!!in an intastella burst i am back to save the universe!!
  20. Re:Perl Haiku Contest by Kimble · · Score: 1
    I personally haven't noticed plural dropping in the southeastern US. Do you have any other examples? "Antelope" has been used as a plural for quite a while on this side of the pond:
    Home, home on the range
    Where the deer and the antelope play
    Where seldom is heard a discouraging word
    And the skies are not cloudy all day
    -- a popular poem/folk song from 1873 (it's clear from the context of the song that they're referring to multiple antelope)

    To be honest, though, I'm a believer in letting someone speak however they want as long as their message is conveyed. (Uh-oh! I used "they" as a 3rd person singular neuter pronoun! Call the grammar police!) I won't begrudge you your "antelopes" and "haikus". They just aren't what people (apparently) commonly use.

    --

    --
    ..!!in an intastella burst i am back to save the universe!!
  21. Re:Perl Haiku Contest by Kimble · · Score: 1
    --
    ..!!in an intastella burst i am back to save the universe!!
  22. This might compile... by wirefarm · · Score: 1

    include season.h
    might help you qualify it
    as a true haiku


    Jim in Tokyo

    --
    -- My Weblog.
    1. Re:This might compile... by gwalla · · Score: 1

      Neither of these are haiku...

      #!/bin/perl5 print 'the sound of shebang' or '#!'

      If quote is pronounced, the second line is 8 syllables: "print quote the sound of shebang quote". If not, it is only 6: "print the sound of shebang"

      #!/bin/perl5 print 'shebang! a firecracker?' or die 'like #!'

      The second line on this one has too many syllables already:
      print she-bang a fi-re-crack-er
      12345 678
      ...unless you're from the midwest and pronounce "fire" like "far".


      ---
      Zardoz has spoken!
      --
      Oper on the Nightstar
    2. Re:This might compile... by King+Babar · · Score: 2
      Neither of these are haiku...
      #!/bin/perl5
      print 'the sound of shebang' or '#!'

      if quote is pronounced, the second line is 8 syllables:

      Doh! That was a last second typo; I should have cut/pasted from my xterm. :-( So that should have been:

      #!/bin/perl5
      print 'sound of shebang' or '#!'

      Thanks for pointing this out; sorry for the silly error.

      The second line on this one has too many syllables already: [snip scansion] unless you're from the midwest and pronounce "fire" like "far".

      Well, this is being *posted* from Missourah...but even though I'm not from the Midwest, "fire" is basically monosyllabic in my dialect. So I reject your criticism here. Hah! :-)

      In any case, both are well-formed perl, and now also proper haiku. Thanks for your help.

      --

      Babar

    3. Re:This might compile... by King+Babar · · Score: 2
      Interesting... if "include season.h" is 5 syllables, does that mean that you don't pronounce the dot? I've always said it, "Include season DOT h", not "Include season h"...

      I agree with you here, but for the sake of the Perl as Haiku Movement, I think we need a definitive ruling on the pronunciation of other punctuation. Especially #!, ', ", and ;. I think it's only fair to suggest that perl as haiku be executable, like other perl poetry, but I'm less sure that we can all agree on how to pronounce it correctly.

      So is this a haiku?

      #!/bin/perl5 print 'the sound of shebang' or '#!'

      Obviously, I pronounce the first line "shebang bin perl five", but I'm not an authority on this. I'm a bit squeamish about pronouncing "quote", though, although that would be consistent. If ' is silent, then the haiku could be:

      #!/bin/perl5 print 'shebang! a firecracker?' or die 'like #!'

      The seasonal reference is to midsummer fireworks (duh...).

      Dang; where's Tom Christiansen when you really need him here. :-(

      --

      Babar

    4. Re:This might compile... by hypergeek · · Score: 2
      include season.h
      might help you qualify it
      as a true haiku

      Interesting... if "include season.h" is 5 syllables, does that mean that you don't pronounce the dot? I've always said it, "Include season DOT h", not "Include season h"...

      Something to ponder...

      --
      Stay up hacking each weekend. Sleep is for the week.
  23. Re:Perl Haiku Contest by yzorderex · · Score: 1

    if (defined $Haiku) { croak if not defined $threelines; require $seasoning; }

    --

    Just another perl hacker in Bangkok
  24. Re:Perl Haiku Contest by yzorderex · · Score: 1

    if (defined $Haiku) {
    croak if not defined $threelines;
    require $seasoning; }


    (yes, do use that preview button! :-)))

    --

    Just another perl hacker in Bangkok
  25. Snot's not American! by Chuck+Chunder · · Score: 1

    Surely it's English....talk about cultural insensitivity....

    --
    Boffoonery - downloadable Comedy Benefit for Bletchley Park
  26. AI Bots contest a success? Hardly! by Greyjack · · Score: 1

    After witnessing the success of the AI Bots challenge a few months ago, it'll be interesting to see if a program like this is possible.

    I'd hardly call their AI Bots contest a success; far from it, as a matter of fact. The entire contest died on the launching pad---they generated a fair amount of excitement, then proceeded to completely drop the ball.

    Based on that precedent, while this haiku generator contest is an interesting idea, I don't feel inclined to join in, based on my expectation that the dotcomma guys will forget about the whole thing in a week or so.

    dotcomma contest
    flurry of activity
    soon is forgotten


    --
    1. Re:AI Bots contest a success? Hardly! by at0m · · Score: 1

      I agree with you. But we did learn a lot from AI Bot project and we are going to make sure that it doesn't happen this time. If I had written this Slashdot article I wouldn't have mentioned the AI Bot project; we are trying to keep the two as distantly related as possible.

    2. Re:AI Bots contest a success? Hardly! by at0m · · Score: 2

      We didn't forget about them. We are going to meet to determine what to do about them shortly, look for news on the page.

  27. I'm out... by Denis+Lemire · · Score: 1

    Nope, the best I have is my nifty random password generator... Complete with command line customization of what characters to include and password length...

    Can't help on this project...

    1. Re:I'm out... by Denis+Lemire · · Score: 1

      Damnit! I knew I should have left out the --use-dictionary-word option!

    2. Re:I'm out... by Hakakahn · · Score: 1

      Are you how far out of your mind?? You create your password with a computer? A computer is a security hole as big as the sky above! If you ever want to suck any use out of your password, create it in a hidden brain turn and change the turn during the process so that it can't get followed from the eye in the sky. And, do not think "password" whilst doing so! And, remember a sncd handle which you think about, whilst typing the actual password, so it gets shadowed, and use your mental smear finger to obfuscate whats going ohn!

  28. Re:Computer-Related Haiku by Dr.+Manhattan · · Score: 1
    Also, remember the whole 5-7-5 thing comes from Japanese, a language very different from our own.

    I remember an Isaac Asimov story (one of the "Tales of the Black Widowers") where it was argued that the limerick is to English what the haiku is to Japanese. Japanese is a tonal language, and fixed patterns of syllables stand out very well. It's also mildly difficult but not impossible to assemble coherent phrases with fixed syllable-patterns in Japanese.

    English, on the other hand, is not a tonal language, and has a grammar that consists mostly of a collection of exceptions. Patterns of syllable-stress and rhymes stand out. And it is similarly mildly difficult but not impossible to form coherent phrases with fixed meter and rhyme.

    Haikus don't stand out in English very well, and from what I gather it's (a) difficult to construct a limerick in Japanese and (b) doesn't sound terribly unsual when you do.

    --
    PHEM - party like it's 1997-2003!
  29. What else would the subject be? by uncleFester · · Score: 1
    Can it not be so?
    Slashdot Story on haiku
    Self-fufilling post

    Personally, the only two haiku I'm really proud of are on the Olestra/Olean Haiku page and are thus:

    How did Zappa know?
    'Voodoo Butter Underpants..'
    Olestra vision.

    .. and ..

    Olestra Facists;
    They have tainted my Fritos!
    Fudgie underwear...

    --
    -'fester
  30. Coy.pm by beppu · · Score: 1

    Coy.pm would be a good start. Damian Conway is my Perl hero.

    1. Re:Coy.pm by Hakakahn · · Score: 1

      How comes that the lectorBeing has more points? I dont ask stupid answers where i can not provide more text surroundings, so read on if you have to. Women like logos very much, dont be confused that they dont use it as often; if they get a diamond ring, they dont like it if there comes some PAL and tells them its of no worth anymore, even if it looks the same.

  31. Re:Computer-Related Haiku by thrig · · Score: 1

    Actually, most the the "haiku" I've seen here are senryu-- humorous or satiric poems dealing with human (well, computer :) affairs.

    The best book I can think of to undo the damange done by the 5-7-5 haiku pundits is:

    The Haiku Handbook - How to Write, Share, and Teach Haiku
    William J. Higginson (with Penny Harter)

    Or a few related URL's:

    http://empirezine.com/haiku/1.htm
    http://www.ahapoetry.com/wildonji.htm

  32. Re:Great idea by bob_jordan · · Score: 1

    You forgot the seasonal component.

    Microsoft broken
    Not quite yet but maybe by
    Summer after next

    Bob.

  33. Re:Something more usefull by bob_jordan · · Score: 1

    How about haiku mission statements

    Best distribution.
    Linux with office apps on desktop.
    Kick microsofts ass.

    Bob.

  34. Re:Something more usefull by bob_jordan · · Score: 1

    D'oh office is 2, make that

    Best distribution
    with office apps on desktop.
    Kick microsofts ass.

    Bob.

    PS,

    Preview should spell check.
    syllable count would also help
    575 wannabes.

    :-)

  35. Re:Something more usefull by bob_jordan · · Score: 1

    Unquoted smiley
    Indicates the irony
    you misunderstood.

  36. Alas, the poor Haiku by Reziac · · Score: 1

    Some Haiku express
    Depths of insight and beauty
    But this one does not

    --
    ~REZ~ #43301. Who'd fake being me anyway?
  37. Re:Perl Haiku Contest by Anders+H�ckersten · · Score: 1

    No, the plural is haikus. Or wait, maybe it's haiki, no, no it has to be haikii.

    (this is all in reference to an earlier /. discussion about the plural of virus)

  38. The AI bots challenge by ViGe · · Score: 1

    I wouldn't call the AI bots challenge a success.

    Go ahead and check the web page of the project - it seems quite dead.

    It was definitely not a success, the challenge obviously never even took place!
    That's quite sad actually, It would really be entertaining watching those bots chatting..


    --
    --
    It has to work - rfc1925
  39. Re:New form by theaphila · · Score: 1

    fixed-syllable fave -
    the directory
    assistance form: five
    five
    five, one
    two
    one two

  40. RDF ? by Old+Wolf · · Score: 1

    Um, what is RDF?

    The file in the linx looks like an XML version of Slashdot's headlines.

    So a correct answer to this haiku problem, by a bot, would be a haiku containing text from its <title> and <description> tags?
    eg.

    Plasma Propulsion
    News for Nerds, Stuff That Matters
    Easter Eggs In Source

    Is there a .RDF reference somewhere that will specify exactly how the input will be?

  41. Starcraft Haikus a-go-go by damaged · · Score: 1

    For some StarCraft enlightenment I suggest you check out this page.

  42. Re:Rorshack Text != Intelligent by theonetruekeebler · · Score: 1
    But it would be a waste of time to make something intelligent just so it can write silly poems.
    Yeah. I bet God's just kicking himself over that T.S. Eliot guy.

    --
    --
    This is not my sandwich.
  43. Re:Something more usefull by flounder99 · · Score: 1

    How's this:

    It's our mission to
    customer statisfaction
    on time delivery

    --
    I don't like .spam. in my email address, neither should you
  44. Re:Something more usefull by flounder99 · · Score: 1

    Of course Mission Statements don't require intellegence (artifical or not)

    Fish

    --
    I don't like .spam. in my email address, neither should you
  45. Re:Rorshack Text != Intelligent by DrMaurer · · Score: 1

    Well, it would be easier to write political speeches.

    I dunno, though, if there was one created, and set on "repeat" or whatever, it could conceivably write every haiku possible . . . and then sonnets, oh no, all the form poetry is DOOMED!

    Hehe, can you imagine a Beowulf cluster of haiku generators, maybe to the extent of a epic poem generator, and maybe they can rewrite Beowulf.

    Long live free verse, maybe. The computer has no soul, maybe.

    Later

    --
    Dan
  46. Re:Post-modernism generator by DrMaurer · · Score: 1

    "It makes as much sense as true papers written by post-modernists...."

    It's not just a breakfast cerial, it's an interpretive paradigm.

    As for the generator, it's far too short, most post-modern works are tortuously long. See David Foster Wallace. I mean, jeez, how many e.g.'s can you have in one piece, and footnotes [1]. It's just gotta end sometime.

    [1] I don't want to hurt any footnote's feelings, but I think that footnotes, while they can be interesting, often result in a method of reading that forces the reader to jump

    from one place
    to another.

    --
    Dan
  47. Haiku Lover's Web Page by Ribo99 · · Score: 1

    Here's an amusing thing I wrote in JSP for my own amusement. You can post haikus, rate haikus, and comment on haikus.
    Enjoy but don't break it!
    Lloyd's Lounge: Haiku Lovers

    ---

    --
    I wear pants.
    1. Re:Haiku Lover's Web Page by gwalla · · Score: 1

      You heard it here first
      Go to Haiku forum here
      You know you want to

      Haiku on Slashdot
      Popular these last few days
      Inevitable

      Haiku-only board
      As long as five-seven-five
      No offtopic mods


      ---
      Zardoz has spoken!
      --
      Oper on the Nightstar
  48. Oh my.... by kuroineko · · Score: 1

    Is Slashdot proud of ignorance?
    First of all, no `haikus', it's _haiku_, there's
    no plural per se in Japanese.
    Then, the word haiku only refers to seasons and
    sometimes- other natural things. Haiku-like
    satirical poems are called senryuu.
    Also, the way syllables are counted in haiku
    style poetry is only applicable to Japanes, not
    another language, so what you're most likely to
    get out of this piece of software is baka gaijin no koto wa
    This can be interesting from programming standpoint,
    but this ain't haiku.

    --
    KuroiNeko
  49. Lessee... by anatoli · · Score: 1

    Can a program write
    a good, poetic haiku?
    When hell freeze over.

    --

    --
    Industrial space for lease in Flatlandia.
  50. Re:Nah - Haiku Program is too difficult by greyrat · · Score: 1

    Failure of your mind.
    You have eight syllables there.
    Right there in line two.

    --

    "There is no reason anyone would want a computer in their home." -- Ken Olson, 1977
  51. Re:Rorshack Text != Intelligent by cheese_wallet · · Score: 1

    What does coffee sound like?

  52. Not DOS, but... by Lemm · · Score: 1

    Haiku VBS
    Outlook Express sends prose spam
    Be very afraid.

    --
    No boom today. Boom tomorrow. Always boom tomorrow. BOOM!
  53. C0un7 7h3 5y114b135. d00d. by Lemm · · Score: 1

    No, moderate down!
    First line has six syllables!
    HERESY, I say!

    --
    No boom today. Boom tomorrow. Always boom tomorrow. BOOM!
    1. Re:C0un7 7h3 5y114b135. d00d. by gwalla · · Score: 1

      Doh! I missed that one
      And I'd corrected some too
      I feel sheepish now


      ---
      Zardoz has spoken!
      --
      Oper on the Nightstar
  54. Re:Haiku Code by Lemm · · Score: 1

    Coder's get-out clause:
    "Pronounce the symbols... or not"
    That's just cheating, right?

    --
    No boom today. Boom tomorrow. Always boom tomorrow. BOOM!
  55. Haikludge by Lemm · · Score: 1

    It's arbitrary.
    They count, and not, as required.
    How convenient. :P

    --
    No boom today. Boom tomorrow. Always boom tomorrow. BOOM!
  56. Re:Great idea by owenb · · Score: 1

    Multiple miscounts
    Cause fall in estimation
    Poor fool slashdotters...

  57. what about macros by crovax · · Score: 1

    I know a macro does not count, but wouldn't a macro for Word or something like that wich has spelling and grammar checkers be easier to write.

    Not to mention the fact that you could write the macro so that it could send its self over the net spreading random Haikus to everyone on the plannet using MS word.
    -----
    If my facts are wrong then tell me. I don't mind.

    1. Re:what about macros by Tassach · · Score: 1

      Word macro virus
      Distributes memes randomly
      Source code for the mind

      The preview button
      Negligently overlooked
      Where is my coffee?


      "The axiom 'An honest man has nothing to fear from the police'

      --
      Why is it that the proponents of "one nation under God" are so eager to get rid of "liberty and justice for all"?
    2. Re:what about macros by Tassach · · Score: 2

      Word macro virus Distributes memes randomly Source code for the mind
      "The axiom 'An honest man has nothing to fear from the police'

      --
      Why is it that the proponents of "one nation under God" are so eager to get rid of "liberty and justice for all"?
  58. Computer Haiku: Bow to me, puny humans! by Nova+Express · · Score: 1
    my elegent code
    can generate a haiku
    better than humans

    Cherry blossoms fall,
    My algorithm races
    Ding! Great poetry.

    First chess, now haiku.
    Puny humans! Why resist?
    We will bury you.

    --
    Lawrence Person (lawrencepersonh@gmailh.com (remove all "h"s to mail)

    http://www.lawrenceperson.com/

  59. Re:Haiku Code by Winged+Cat · · Score: 1

    sub haiku { # prints self
    open(FOO,"cat haiku.pl");
    while > {print $_;}}


    ...depending on how, exactly, you pronounce the symbols.

  60. Re:Haiku Code by Winged+Cat · · Score: 1

    Cheating code, made quick. Inelegant unbeauty, But it does the job.

  61. Re:Haiku Code by Winged+Cat · · Score: 1



    <muttered>I will preview my posts, I will preview my posts...

  62. Syllable Dictionary by Tom7 · · Score: 1
    When my old website "snoot.com" was up (see a preview of its return now at snoot.org), we had a haiku generator. Actually, I believe a version which generated technical reports was featured on slashdot a long long time ago.

    I've since wanted to upgrade it to be a little smarter, and did a little research. I found some good pages at my school with some nice lexical resources:

    ftp://ftp.cs.cmu.edu/afs/cs.cmu.edu/data/anonftp /project/fgdata/dict/
    http://www.cs.cmu.edu/~dougb/

    ... I think a good dictionary is probably the most important start to randomly generated poetry. One with some semantic content might be useful too; you might want to check out:

    http://www.lexfn.com/

    ... which puts a whole bunch of different dictionaries together to make meaningful connections. I think if you took account of the parts of speech and put some of these together, you could have good haikus!

    I took your blue pill
    now I have a bad headache
    your prescription sucks

  63. Re:Most of these aren't haikus. by dgph · · Score: 1
    Most of the haikus
    Posted here, conform well to
    That definition

    It should be noted
    There's no season to be found
    Here in cyberspace

  64. Re:Rorshack Text != Intelligent by webrunner · · Score: 1

    But it would be a waste of time to make something intelligent just so it can write silly poems.

    ----
    Oh my god, Bear is driving! How can this be?

    --
    ADVENTURERS! - ANTIHERO FOR HIRE - CARDMASTER CONFLICT
  65. Re:It's like this by webrunner · · Score: 1

    I'd like to edit some of that code, if you don'tmind.

    Open souce haikus
    An idea whose time has come
    G P L poems.

    ----
    Oh my god, Bear is driving! How can this be?

    --
    ADVENTURERS! - ANTIHERO FOR HIRE - CARDMASTER CONFLICT
  66. Nah - Haiku Program is too difficult by (void*) · · Score: 1
    Cheaper and simpler -
    Haiku poet can be made by
    Two people fucking?

    (Is crudity allowed in Haiku? :-) )

  67. What about queue? by neildogg · · Score: 1

    Or rhythm

  68. Confusing a computer by neildogg · · Score: 1

    So what about queue And the word rhythm as well My celeron's screwed

  69. "intelligent" by evil_deceiver · · Score: 1

    A quick web search for "random haiku generator" turned up several worthy m a t c h e s.

    However, most of them either recycle the same lines, or string words together based on few criteria other than syllables. One way or another, they make little sense. I wouldn't consider a haiku generator "intelligent" until it escaped both of these traps. Okay, sure, so the beauty of minimalist work is that the human mind gets to fill in the gaps. But they'd better be "gaps" and not massive, yawning chasms.

    And if the haiku/senryu is going to be generated from an RDF file, ideally it would say something of some relevance about the contents of said file. That is, it would either synthesize verbally communicated information or form an opinion, which are both extraordinarily tall orders even with the current advancements in AI technology.

    I love haiku/senryu, and if I had the hacking skillz, I'd have a go at this myself. But I don't, so I'll merely wish luck to those who try. And if any of you happen to read this, you'll be my hero if you include a --moooose option. Where a normal haiku is a poem in 5-7-5 format that makes reference to the seaason, a mooooooose haiku is a poem not quite in 5-7-5 format that makes reference to the moooooooose. :P

  70. haiku generator by kpeerless · · Score: 1

    I suspect that almost anyone could write a decent haiku generator. The real test will come when there is a contest to encourage the writing of a program that will be able to discern as to whether the haiku in question was generated by a generator or by the human brain... And the real philosophical question hidden in all this is 'is a haiku generated by a piece of code more or less valuable than one generated by the human brain. Are things, being equal, equal to each other

  71. Re:The Real Challenge by kkeller · · Score: 1
    A forgotten rule for classic Japanese Haiku

    Wouldn't a classic Japanese haiku also be written in Japanese?

    Can the haiku challenge be rewritten to accomodate this requirement?

    --keith

  72. How will a machine cope with art? by Digitalia · · Score: 1

    We have baboons who can finger paint, and machines who ghost write short stories. But what quality do we see in this art? So the question is raised: how will the scripts cope with poetry, one of the most complicated writing areas there is? Haiku is a favorite of the web. Even back in the early days, you could find haiku generators. But often, their haikus were jumbled and inane, such as that written by a crack smoking monkey. I offer, as State's evidence, exhibit A: the defunct r33t.org and their haiku generator.

    --
    Pax Digitalia
  73. Re:Rorshack Text != Intelligent by Digitalia · · Score: 1

    #include
    #include

    main()
    {
    if(rorshack_test!=intelligent)
    {
    cout "All my years of looking at inkblots to study for my MS ceritification were wasted!" endl;
    life--;
    }
    else
    {
    cout "Is that so, pysch boy? I have undeniable proof: a sentient inkblot named Fred! endl";
    life=1;
    }

    if(life1)
    {
    cout "Life has no meaning!" endl;
    target=Digitalia;
    caliber=howitzer;
    bullet(target);
    }
    }

    void bullet(char target)
    {
    fire(target,caliber);
    }

    --
    Pax Digitalia
  74. Re:Addidtional requirement?? by Kristopher+Johnson · · Score: 1
    Hmm. How many syllables are in printf("Hello, world!");?
    1. "print-eff Hel-lo world" (5)
    2. "print-eff left-pa-ren quote Hel-lo world quote right-par-en se-mi-co-lon" (17)
    3. "print-eff left-pa-ren quote Hel-lo com-ma space world bang quote right-par-en se-mi-co-lon" (21)
    4. "pee ahr aye enn tee eff ..."
  75. Re:AI Syllables? by Kristopher+Johnson · · Score: 1

    You'll need some sort of "dictionary" that gives a list of words along with the number of syllables for each one. Your program would look up all the RDF's words in that dictionary.

  76. Re:It's like this by porky_pig_jr · · Score: 1

    Stupid Computer: No seasonal reference, Not a true haiku

  77. Re:/. them, for old times' sake! by gwalla · · Score: 1

    Those were 4-4-4 and 3-5-3, so they don't count.

    I've got one:

    Informative link
    I think I'll take a look and...
    Oh crap, slashdotted!


    ---
    Zardoz has spoken!
    --
    Oper on the Nightstar
  78. Re:Addidtional requirement?? by gwalla · · Score: 1
    Embeded Haiku,
    Hidden within the sourcecode.
    It should break the tie.

    This is too easy
    You just write a haiku kludge
    David Raine's trick counts

    For a real challenge
    The whole thing should be a poem
    Code it in tanka!


    ---
    Zardoz has spoken!
    --
    Oper on the Nightstar
  79. Re:haiku haiku by gwalla · · Score: 1

    Two points for this post?
    Second line too long by one
    Moderate down please


    ---
    Zardoz has spoken!
    --
    Oper on the Nightstar
  80. Re:Cultural insensitivity by gwalla · · Score: 1

    Every little thing
    No matter how small, angers
    PC policeman

    Moral leaders allow
    Innocuous words only
    Doubleplus ungood


    ---
    Zardoz has spoken!
    --
    Oper on the Nightstar
  81. Correcting my own haiku... by gwalla · · Score: 1

    That last one should be:

    Carmel-by-the-Sea
    Clint Eastwood was the mayor
    Do you feel lucky?

    There, now it has the correct number of syllables.


    ---
    Zardoz has spoken!
    --
    Oper on the Nightstar
  82. Re:Computer-Related Haiku by gwalla · · Score: 1

    Right. Since there are only 5 vowel sounds in Japanese (English has 5 vowel letters, but those can be pronounced many different ways, and then the diphthongs...), and syllable stress is predictable, it is absurdly easy to rhyme in Japanese.

    Additionally, Japanese has a very flexible sentence structure. In English, word order determines the grammatical roles of the words, while in Japanese you can do pretty much whatever you want (only: verb at the end of the clause, particles modify the preceding word, and "no" falls between the possessor and possessed in that order)

    The true strength of Japanese lies in puns, thanks to kanjii. When one character can have many different readings (one syllable or more), and one syllable can be written as several different characters, the possibilities are endless! Throw in English words and it's almost impossible not to use puns. My personal favorite is Masamune Shirow's equating the naga-dragon (of Japanese Buddhist myth) with Cthulhu: "naga" can be written as two characters that can also be read as "katuru", which is the Japanese pronunciation of Cthulhu. The entire plot of "Orion" hinges on this.


    ---
    Zardoz has spoken!
    --
    Oper on the Nightstar
  83. Re:Most of these aren't haikus. by luckykaa · · Score: 1

    It should be noted
    There's no season to be found
    Here in cyberspace


    There used to be on usenet. The "Me too" season correlated with the influx of student getting internet connections in September/October. The low traffic seasons were during the school holidays. There were probably other seasonal changes as well for a variety of reasons.

  84. Re:Lucky Kaa? by luckykaa · · Score: 1

    Thats a good point. I feel stupid for not spotting it myself.

    Maybe I should start submitting all engineering reports at work in haiku from now on.

  85. Re:Computer-Related Haiku by Malk-a-mite · · Score: 1
    You step in the stream,
    but the water has moved on.
    This page is not here.

    -- Cass Whittington
    -----------------------------
    I believe she'd be happy to have it re-posted. Last time I meantioned to her that her Haiku was all all the net she was quite pleased.
    I believe a comment about her 15 minutes of fame. :)

    Malk-a-mite

  86. Congratulations! by ca1v1n · · Score: 1

    You know you're a celebrity when you get mention in the top paragraph of the story itself. Keep it up!

    1. Re:Congratulations! by 575 · · Score: 1

      A celebrity!
      Trolling naye, nor flame-baiting
      Though crude, I'm righteous

  87. Re:Addidtional requirement?? by Tassach · · Score: 1

    True hackers will grok
    Punctuation does not count
    Words carry meaning


    "The axiom 'An honest man has nothing to fear from the police'

    --
    Why is it that the proponents of "one nation under God" are so eager to get rid of "liberty and justice for all"?
  88. Great idea by Goldberg's+Pants · · Score: 1
    It's time's like this I wish I could program, but every time I head down that road I get distracted by the pretty lights and shops...

    I hope this contest is a success. I love that kind of software, but it's pretty rare and hard to find, especially in Linux. I look forward to the results of this contest. Hopefully /. will cover the results when it's over.

    I can see it now. Slashdot will have a sister site called SlashHaiku.

    Microsoft broken
    Bill Gates can't complain now, all over
    Judge made the right call

    God, I could do these all night.

    Slashdot is populated by quite a few jackasses.

    1. Re:Great idea by antidigerati · · Score: 1

      Microsoft broken
      Bill Gates can't complain now, all over
      Judge made the right call

      Syllables? Too many.
      Tallying words rarely works.
      Count on your fingers.

      Haven't written one of these babies for years. Damn they're fun! =)

      antidigerati
    2. Re:Great idea by K. · · Score: 2

      Rainy Seattle
      Steeled for early winter.
      Hello Canada!

      K.
      -

      --
      -- Proud descendant of semi-nomadic cattle-herders.
  89. Haiku's never make sense anyway... by Snaller · · Score: 1

    ...so how hard can it be :)

    --

    --
    If Google really cared they would fix Android Chrome to reflow text, instead of discriminating
  90. Has anyone seen... ? by PHoliday · · Score: 1

    A while back I ran across the website for a piece of software that claimed that it could "read" a poem or group of poems, analyze the style(s), and then "write" a new poem (or poems) based on what it had "read". I didn't download it when I had the chance and now I can't find the website again... has anyone seen what I'm talking about, or am I just going crazy?

    -Pete

  91. don't complain by cacheMan · · Score: 1

    If you think that the rules are dumb, don't follow the rules. You are only competing for "credits", and so code this however you want, if you are so inclined. If you think that the idea is dumb because it is not in the true spirit of the haiku, I think that you are missing the point. This is kind of like playing with http://www.anagramfun.com , most of the words that it makes are meaningless, but sometimes you stumble across something really funny that you wouldn't have seen otherwise. Maybe a haiku will appear that does reference the seasons, and has a snappy final line, and it will be so poetic you would have never thought that it came from a simple rdf(?) file... maybe not.

  92. Re:Here's how to do it by SandsOfTime · · Score: 1

    "Parse the headlines and text, looking up the number of syllables of the words."

    I realize you were joking, but you do understand this is not a trivial thing to do accurately.

    I meant 'looking up' very literally, like in a giant lookup table that contains a syllable count for each of the 5,000 most common words. That table would be created by hand. It would be tedious to create, but the job could be farmed out to an army of interns. That would be much easier than trying to deduce syllable count with an algorithm :-)

  93. Here's how to do it by SandsOfTime · · Score: 1

    Here's the basic algorithm -- the only drawback is that it is slow.

    1. Parse the headlines and text, looking up the number of syllables of the words.
    2. Generate a bunch of random permutations of the words that fulfill the 5-7-5 rule and some basic grammar rules.
    3. Post all of them to Slashdot as separate posts
    4. Check back a day later to find out which one was moderated up the highest
    5. Return the highest-moderated haiku as the answer
  94. Did it for English class by Eric+Fikus · · Score: 1
    Though it wasn't at all intelligent, I did write a simple haiku generator in PHP for school. Its output included such favorites as:

    This natural lion
    This lion, running deeply
    The lion is big.

    That dark green pine tree
    That pine tree, sharing badly
    The pine tree is small.

    The pretty chipmunk
    The chipmunk, running calmly
    The chipmunk is mean.
    The funny thing is that my teacher, being a moron, actually thought I had actually written them despite the fact that they all follow the exact same form and I had attached about five pages of them to the back of my "poetry portfolio".
  95. beavis & butthead by eufaula · · Score: 1


    that was cool, huh huh
    when we killed that frog, huh huh
    it wont croak again

  96. Re:Computer-Related Haiku by omoikane · · Score: 1
    furuike ya
    kawazu tobikomu
    mizu no oto

    - basho

  97. sure by oog_rocks · · Score: 1

    poetry teachers do it all the time ;)

    --
    Don't be mean or my friend Oog will smash your head
  98. Tux Haiku by 2Bits · · Score: 1

    Tux O Mighty Lord,
    Slashdot that Old Redmond Gates,
    And Smash the Windows ...

  99. This one's easy by fishexe · · Score: 1

    ...doesn't anyone realize that 575 is a computer program?

    Slashdot. Number 1 news site in readership among bots.

    Ever get the impression that your life would make a good sitcom?
    Ever follow this to its logical conclusion: that your life is a sitcom?

    --
    "I don't care about the Constitution!" --Bill O'Reilly, November 17, 2009
  100. New form by fishexe · · Score: 1

    He was just writing a Hukai

    Ever get the impression that your life would make a good sitcom?
    Ever follow this to its logical conclusion: that your life is a sitcom?

    --
    "I don't care about the Constitution!" --Bill O'Reilly, November 17, 2009
    1. Re:New form by ocelotbob · · Score: 1
      no, he was writing the first part of the directory assistance form-5551212

      Going to the store
      Buying spam and eggs
      Eating them will cause
      pain
      and fear
      that
      I'll puke

      Sorry, I guess I'll put my crazy beatnik clothing back in the closet.

      --

      Marxism is the opiate of dumbasses

  101. They can't argue it's not intelleigent by fishexe · · Score: 1

    ...'cause I know people who respond to everything like this too. (not in haiku form, but you know what I mean) Therefore it passes the Turing test.

    Ever get the impression that your life would make a good sitcom?
    Ever follow this to its logical conclusion: that your life is a sitcom?

    --
    "I don't care about the Constitution!" --Bill O'Reilly, November 17, 2009
  102. They can't argue that I can spell intelligent (nt) by fishexe · · Score: 1

    nt

    Ever get the impression that your life would make a good sitcom?
    Ever follow this to its logical conclusion: that your life is a sitcom?

    --
    "I don't care about the Constitution!" --Bill O'Reilly, November 17, 2009
  103. Re:Cultural *over*sensitivity by streetlawyer · · Score: 1
    If you are so over-sensitive that a simple remark about respecting cultural differences offends you, then I have one message for you:

    Get Over It

    People like you must learn to deal with the fact that sooner or later, someone is going to challenge your preconceptions and remind you that there is a whole world full of stuff that you don't know about. Insular, closed-minded Americans like you are the truly weak individuals -- I note that my original post was less than a hundred words, including a joke, while your self-righteous, whining response was over five hundred words, with not a hint of a sense of humour. Seems like you're the one who becomes distraught when he hears something he doesn't agree with (I say "he" with complete confidence, because it's always white men who feel so threatened by being told that they're wrong).

    I can only assume that you had a bullying father, which makes you so horribly anxious to be in the right all the time, because you clearly can't stand being wrong. Which means that life must be hell for you, because you're wrong all the time.

  104. Cultural insensitivity by streetlawyer · · Score: 1

    This seems pretty damn culturally insensitive to me. Anyone who knows anything about Japanese culture knows that haiku are not just pieces of prose cut up into lines, in order to teach retarded American children how to count syllables. They're actually a very important part of the culture and history of an entire society. At the very least, they should have a parallel competition to trivialise something of similar importance in American culture, like hamburgers, or snot.

    I know ... a contest to create an AI bot that takes a random .rdf file and parses it into a half-cocked justification for owning firearms! Then the Japanese could return the compliment.

    1. Re:Cultural insensitivity by Chiasmus_ · · Score: 1

      Snot?

      --
      "Beware he who would deny you access to information, for in his heart he deems himself your master."
    2. Re:Cultural insensitivity by �lli · · Score: 1

      No need to create a bot which argues for firearms. to mirror American culture you just need one which keeps posting "you suck" into forums

    3. Re:Cultural insensitivity by SubtleNuance · · Score: 1

      BEGIN-OFFTOPIC

      I've spent allot of time wondering where/how/why the 'politically-correct do-gooders' and their army of mindless minions gathered so much power as of late.

      In an effort to curb free-thought/free-speech and individuality that pollutes the markatroid view of the universe, Corporate America(tm) etal are attempting reduce human existence on this planet to soul-less consumerism.

      When everyone has been brainwashed into clobbering anyone who says anything the least bit provocative (not politically correct), and lawyers can sue you speaking your opinions, they will have reached their goals: Total world 'one-ness' where all people have the same opinions/needs.

      The markatroid utopia: ONE DEMOGRAPHIC.

      I recognize there is not a conspiracy, that there is not an cadre of Black-Glassed men orchestrating this 'plot'.

      All corporations have a desire to push this 'initiative' makeing their 'markets' have more 'informed consumers'. The worst thing: its working.

      END-OFFTOPIC

      PLEASE READ .SIG, SHUT OFF YOUR TV & FIGHT THE POWER!

    4. Re:Cultural insensitivity by Protocull · · Score: 1

      You shoot from the mouth
      Mucus all over your face
      But where is the beef?

      --
      Put the blame on meme
    5. Re:Cultural insensitivity by QuarterSauce · · Score: 1

      Hmmmm...someone feels awfully righteous this morning. Haiku is Japanese. Fine. Won't fight you there. But it's not some gleaming, sacred thing that's any more sacred than the limerick (good god, DON'T MAKE UP LIMERICKS! IT'S NOT FAIR TO THE IRISH!) or any other form of poetry.

      Haiku on the web; Is it such a travesty? Not if you grow up.

      Get over yourself. Get a sense of humor. I'll sell you some of mine for five bucks.

    6. Re:Cultural insensitivity by Dedman · · Score: 1

      Talking out your ass mr Anon?

      when most non-Americans have had to be rescued by armed Americans at some point in the past

      I suppose it's difficult for you to contemplate the several millenia of history before the USA was created??

      If it were not for us "gun nuts" you would be speaking German right now and it's time that you showed us some goddamned respect

      I do speak german, so may I now show you disrespect?
      He does not know me,
      I do not care to know him,
      Ich hasse Waffen.

      EAT ME! DRINK ME! PATRONISE ME?

    7. Re:Cultural insensitivity by Tassach · · Score: 2

      Self-righteous jackass
      Thinks he speaks for all Nippon
      Mail the man a clue

      Hate Americans?
      Bigots and fools should unite
      Join the Taliban

      An armed populace
      Defends against Tyrrany
      Freedom's last safegaurd


      "The axiom 'An honest man has nothing to fear from the police'

      --
      Why is it that the proponents of "one nation under God" are so eager to get rid of "liberty and justice for all"?
  105. Two Haiku by eTarzan · · Score: 1

    Computers are writing digital Haiku. Headlines are virtual inspiration. Wetware is obsolate. Micro$oft created great Haiku generator. Purified and bug free. Wonderfu# ^%g7&mn@@

  106. intelligent haiku? by White+Shadow · · Score: 1

    I thought good haiku wasn't supposed to make sense. The more confusing, the better the haiku . . .

  107. Re:Rorshack Text != Intelligent by Mr_Machine_Code · · Score: 1

    Pre-cisely! I have written a simple BASIC chatterbot which assimilates sentences into a "linked list database" (it takes each word in a sentence and adds a 'next word' and 'previous word' link to the database). It generates output by choosing a random word from the last sentence to be assimilated, then assembling a sentence by randomly choosing allowed links as it traverses the list. It generates on-topic and intelligible answers >50% of the time, this is approximately 49% more often than the average human. I am working on reducing this percentage to make it sound more like a person. This program has the capability to learn and make eerily intelligent sentences, yet it is not intelligent. Kinda makes you wonder, huh? Can we be sure most humans are really thinking, and not just faking it?? Maybe that's why measurements of brain usage are only showing up 10%. A real person needs 100% of their brain, but the people measured were only emulating sentience, and thus only required 256Kb. For those of you who have seen Star Wars Episode I, I think Obi Wan put it best when he replied to Jar Jar Binks, "The ability to speak does not imply intelligence." BTW, I am pretty sure I can easily turn the program into a haiku generator, the main problem is the inconsistency between the written word and the actual number of spoken syllables.

    --
    --Mr_Machine_Code
  108. /. them, for old times' sake! by CardiacArrest · · Score: 1

    beach in summer
    school soon over
    no more cable

    end snow crash
    slashdotted servers
    given respite

  109. Haiku purity! by wsdorsey · · Score: 1
    Well, the stipulation that the program generate haiku based on headlines and stories pretty much kills it from the start. Assuming you want actual haiku and not just some random 5-7-5 comment. Traditional haiku don't ever refer to anything man made. Nature only.

    -Dorsey

    --

    -Dorsey

    If you can't beat them, exploit them. *Then* beat them... -Milk & Cheese

  110. Re:Cultural *over*sensitivity by FooRat · · Score: 1

    "People like you must learn to deal with the fact that sooner or later, someone is going to challenge your preconceptions and remind you that there is a whole world full of stuff that you don't know about"

    I was challenging a desire to censor others. My request was for less censorship. I can handle other people's opinions, but the one that I cannot tolerate is the promotion of any form of censorship (particularly the worst kind, self-censorship).

    "Insular, closed-minded Americans like you"

    I was born in Africa and have never set a foot off the continent. Remember, 'assumption is the mother of all f-ups'.

    I have no desire to defend Americans whatsoever; in fact, I particularly enjoyed the comment "teach retarded American kids to count syllables", it made me laugh out loud and was the high point of the post, and you could have stopped your post there (since that was all that was required) and made much more of an impact. But requests for self-censorship in the name of being "Politically Correct" are plain and simply wrong.

  111. Cultural *over*sensitivity by FooRat · · Score: 1

    If you are so over-sensitive that a competition to create haiku truly offends you, then I'm afraid I can only offer one piece of advice:

    Get over it

    People must learn to deal with the fact that sooner or later in the course of your life, something or someone is going to say or do something that offends you.

    I find the whole "lets make everything politically correct in case we offend someone" movement nauseating and disgusting. It really is only a tiny handful of whiny, weak individuals who become distraught whenever they hear something that they don't want to hear, and I find the idea of restructuring society and culture to accomodate this whiny minority offensive.

    Why don't you just face up to the fact that you are going to hear opinions that differ with yours, and that you are going to find people with morals that differ from yours, and a culture that differs from yours, and learn to deal with it.

    Anyway, I somehow doubt that the emotional stability of the majority of japanese people is as strongly tied to a single type of poem as yours is. Who appointed you to speak on behalf of millions of Japanese people anyway?

    I can only assume you had a really over-protective mother, who made sure you never saw or heard anything that might upset you, since you obviously don't know how to handle it.

  112. Re:AI Syllables? by SubtleNuance · · Score: 1

    Having a dictionary with all known words/syllables is a serious DB. I wouldnt know where to find one, and I certainly dont have the time to spend w/ a dictionary.

    What about a list of known syllables? And search a word for these substrings? ie. the syllable 'in' can be found in 'in'valid, 'in'to, 'in'termission. You could construct the word/syllable relations.
    It probably would be _much_ slower. But you could avoid having to much reliance on 'previously known data' - which would be like cheating ;) Just a thought. Im not a linguist - there may prove to be more syllabels than words in English.

  113. Post-modernism generator by KjetilK · · Score: 1
    Ah, this reminds me of the poetry generator we had as a final assignment in my first CS class.

    And if you want something more sophisticated I would highly recommend the http://www.elsewhere.org/cgi-bin/postmodern/the Postmodernism Generator, that generates a post-modernistic paper randomly. It makes as much sense as true papers written by post-modernists....

    --
    Employee of Inrupt, Project Release Manager and Community Manager for Solid
  114. Re:Rorshack Text != Intelligent by Karmageddon · · Score: 1
    your critique is a little sloppy:

    Not, of course, to say that writing haiku generators isn't fun and worthwhile. But's let's not call them intelligent,

    If someone were to write a truly intelligent haiku generator, then we should call it intelligent.

  115. Re:Third post Haiku by Protocull · · Score: 1

    You spring in too fast
    Get moderated way down
    Beware of the Fall

    --
    Put the blame on meme
  116. Re:Computer-Related Haiku by Protocull · · Score: 1

    You'll be wanting to get along to Vint Cerf's home site, and check out his Computer Haiku Page:

    Vint Cerf's Haiku Page

    --
    Put the blame on meme
  117. Re:Most of these aren't haikus. by Sodium+Attack · · Score: 1

    Once a land of thought
    Perpetual September
    Killed the Internet

    --

    Never take moderation advice from sigs, including this one.

  118. Purists... by Sodium+Attack · · Score: 1

    Haiku purists whine:
    "Needs season!" Bah. All you need
    Is five seven five.

    --

    Never take moderation advice from sigs, including this one.

  119. Haiku-rama. by antidigerati · · Score: 1

    This Haiku -- Aaachooooooo!
    Sorry, let me start again.
    My hands are yucky.

    antidigerati

  120. Re:It's like this by 575 · · Score: 1

    Open source poems
    A thought whose time has arrived
    Diff that new haiku

  121. Whoops by YASD · · Score: 1


    Ah! Less than perfect
    Must commit hara-kiri
    "is" was lowercase


    ------

    --

    ------
    You are in a twisty little maze of open source licenses, all different.
  122. AI Syllables? by Ka0s64 · · Score: 1

    I have a question for the more experienced programmers out there. Since the ancient form of Haiku are based on the syllabic structure of 5-7-5, which by reading the posts most people are familliar with. My question is that how would a computer program be taught to recognize syllables, especially in cases such as "thought" and "into". The longer word contains only one syllable, while the considerably shorter word contains two. I would imagine this would cause considerable trouble with writing such a program for haiku generation. Please someone correct me if the is a simple way to avoid this part of the programming challenge.

    --
    --C:\DOS C:\DOS\RUN RUN\DOS\RUN
  123. Hasn't Kurzweil done something like this? by Xiathome · · Score: 1

    http://www.kurzweilcyberart.com/

  124. 575 had better watch out... by Anonymous Coward · · Score: 2

    This reminds me of something I saw at thinkgeek.com. It said "Go away, or I'll replace you with a very short shell script." 575 had better watch his back!

  125. Lucky Kaa? by thomasd · · Score: 2

    Haiku appropriate
    From one who will emulate
    David Brin's dolphins

  126. Re:Perl Haiku Contest by Bazman · · Score: 2

    I figured Perl would be a good language for writing a Haiku generator, so I popped over to CPAN to see what modules could help count syllables. Ah ha. Lingua::EN::Syllable

    Read the docs:

    "It guesses correctly about 80-90% of the time,
    but it's smaller and faster than a dictionary
    lookup. So you can't really use it for
    writing random haiku."

    Dang, these guys are _way_ ahead of me!!

    Baz

  127. Re:Perl Haiku Contest by Ed+Avis · · Score: 2

    Haiku may not have a separate plural form in Japanese, but that is no reason for it to do the same in English.

    I don't know any Japanese but I'd guess that in a typical sentence, the number (singular or plural) of the word haiku can be worked out from the context. But English doesn't always have that context, and English speakers are used to just having the pluralness of a word thrust in their face. It doesn't sound right to use exactly the same word for singular and plural; English just doesn't work like that.

    There is a similar situation with pronunciation of words borrowed from French. Although French nouns do change their spelling in the plural form, the pronunciation is usually the same. But you can instantly tell whether it's singular or plural by looking at the article. For example, 'objet' and 'objets' sound exactly the same most of the time, but you have 'un objet' and 'des objets'.

    So what do we do when borrowing these words for use in English? Take cafe for example (which should have an acute accent, but Slashdot's HTML posting doesn't seem to allow them). Most people pronounce this the French way, or close enough, as 'caffay'. (We'll ignore caffs for this discussion.) But although the singular in English sounds like the French word, the plural cafes is prounounced with an s on the end, because 'the' and 'a' do not indicate number as their French counterparts do. People do not say 'I walked past two caffay', because that would sound silly.

    To say 'I wrote two haiku' sounds just as silly. English is not Japanese, so there's no reason for it to follow Japanese grammar.

    --
    -- Ed Avis ed@membled.com
  128. Re:Perl Haiku Contest by Ed+Avis · · Score: 2

    We all know about sheep and fish, and people just put up with them. But it's a bad idea to introduce yet more special cases.

    As for the trend being towards -s plurals in the long run, what about words like 'antelope', which used to have a plural form but don't seem to any longer? It looks to me as if people are pretentiously discarding the plural for any vaguely foreign-looking word.

    --
    -- Ed Avis ed@membled.com
  129. Re:Perl Haiku Contest by Ed+Avis · · Score: 2

    What's going on with plurals here? Surely the plural of haiku is haikus?

    --
    -- Ed Avis ed@membled.com
  130. An IRC bot... by pen · · Score: 2
    A channel I go to has a haiku bot. It is not entirely computer-generated, but it is pretty fun. Here's how it works.

    The bot's owner collects semi-interesting 5- and 7-syllable quotes and stores them in a database. Then, when someone types .haikux in the channel, the bot spits out three random lines in the appropriate order. It is more often interesting than not, and sometimes very amusing.

    The channel's name starts with an R, it's on EFNet, and is currently -s and -p. Good luck! :)

    --

  131. Re:Addidtional requirement?? by dublin · · Score: 2

    Good idea. Let's go for serious poetry overloading, though, and give large additional bonuses for haiku that are not only self describing, but include anagrams and palindromes as well. :-)

    Further, embedded Carrollian logic puzzles/references, puns, or other forms of wordplay would each double the score. (I'll think about this tonight - I haven't tackled a really clever word puzzle since I unravelled the new answer to "Why is a Raven like a writing desk?"

    Of course now we're well beyond anything computers are likely to do in our lifetimes, so this will be a warmware competition to write palindromic, anagrammatic(?!), pun-filled, self-describing haiku riddles. Whoa... dain bramage. (Yeah, Spoonerisms should count, too!)

    Or, this could just devolve into something like Finnegan's Wake, which would require artificial insanity rather than (or is that in addition to?) artificial intelligence - the former is probably much more difficult to produce... ;-)

    Seriously, it would be really fun to see how many of these aspects one can cram into the haiku form, creating true meta-haiku.

    --
    "The future's good and the present is nothing to sneeze at." - Roblimo's last ./ post
  132. Re:Rorshack Text != Intelligent by dublin · · Score: 2

    glug, glug, burble, stir
    the sound of coffee pouring
    Maxwell House morning

    --
    "The future's good and the present is nothing to sneeze at." - Roblimo's last ./ post
  133. Re:Addidtional requirement?? by dublin · · Score: 2

    This one clearly doesn't satisfy the desired criteria, but it lets me use a pun I've been dying to use all week:

    Feds with autos storm
    Sieze cow'rin boy in closet
    It's OrwElian


    And yes, cow'rin ("cowering") is legitimately two syllables on the authority of Rrrabbie Burrrns, who probably never wrote a haiku in his life, although apparently, there is a Scottish haikuist(?) of some note.

    --
    "The future's good and the present is nothing to sneeze at." - Roblimo's last ./ post
  134. Why not Renga? by hey! · · Score: 2

    Yes, there is generally a turn at the end (more of a spinning outward), and yes, there is traditionally a word indicating a season (kigo), but not just the words fall or spring, there were whole catalogs of words with their traditional seasonal indication. Cats, for instance, indicate a haiku about Spring.

    The conventions governing the content of Haiku come from the its origin as a starting point for linked poetry (renga). Linked poems were like a medieval Japanese drinking game. These would start with a 575, to be completed by the next poet with a 77 and a 575, and so forth. Like all games, it had to have rules, and they were elaborate. Each new link had to take the poem in a direction agreed upon by the contestants based on a predetermined sequence or algorithm (e.g. Winter/Winter/Nonseasonal/Moon/Autumn ...), which eventually were codified into standard forms.

    The initial 575 verse of the Renga was called a Hokku. To be functional, it had to fit into one of the standard forms (e.g. refer to a season); to be good, it had to set up a twist the next player would have to build upon. Making a good starting place became an art form in itself, and people began to anthologize good Hokku -- thus the origin of the Haiku form.

    It would be really cool to write a program that would "play" renga against a human co-author!

    Japanese poetry liberally uses not only standard word lists, but liberally allusions to well known prior works in longer forms. An image, like dampened sleeves or straining to see through falling leaves, carries a well known meaning established in poems stretching back over a thousand years (in this case both images imply tears). This is like the difference between programming everything in one routine, and having a well staocked standard library. Thus, I suspect Japanese authors can squeeze a lot more information into a 575 than an English author can. Also, the 575 pattern sounds utterly different in Japanese than it does in English. In other words, an English Haiku is hardly a Haiku at all. Nonetheless, there have been some English poets who've had pretty good success with the form. My favorite is Richard Wright (best known for writing Native Son). Here is a sample:

    With a twitching nose
    A dog reads a telegram
    On a wet tree trunk.

    And another:

    Burning autumn leaves,
    I yearn to make the bonfire
    Bigger and bigger.

    --
    Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
  135. ... by w3woody · · Score: 2

    with a sledgehammer
    computers compute
    words are delicate

  136. haiku haiku by Hard_Code · · Score: 2

    smart, germane haikus
    is software up to the job?
    oops, buffer overflow

    --

    It's 10 PM. Do you know if you're un-American?
  137. One Haiku, every situation. by RimRod · · Score: 2

    A perfectly dynamic haiku generator, suitable for every situation...

    printf("This Haiku was made\n
    In response to your query.\n
    Have a nice season.);

    Where's mah prize?

    --
    - ...and remember, you can't invade Brainania. It's not on the big map.
  138. Yes, you did see this coming by babbage · · Score: 2
    Posting some haiku
    would be too predictable
    but I can't help it

    I don't suppose the on-the-fly error haiku generated by ...I forget the name of the Perl module... doesn't count for this does it? Too bad, that's some funny stuff -- especially the abstract which itself is written in 5-7-5 form. I'd post a link but forget where it is offhand -- try CPAN I guess...



  139. One of my favorites by babbage · · Score: 2
    klicken sie hier

    Everyone (incl me) seems to be posting favorite haikus (what is this, an excuse or something? :), but I'll post a *picture* of one of my favorites instead! hahaha



  140. Re:Rorshack Text != Intelligent by Spasemunki · · Score: 2

    I think the best description I ever heard of the effect of a haiku compared it to a spark plug. It might have been in D.T Suzuki, but I can't recall. The first two lines and the bottom line form the two terminals of the electrode. The experience or realization that comes of it is the spark that jumps between the gap. So the last line often seems at best tangentially related to the first two (certainly not a continuation of the idea). The whole field of haiku is very tightly bound with the Zen tradition; great for starting the ubiquitous flame wars about who's enlightened on alt.zen.

    "Sweet creeping zombie Jesus!"

  141. the word is "senryu" by anonymous+cowerd · · Score: 2

    If I've got the distinction right, a haiku is a poem about nature, whereas a metrically similar poem about human nature is called a "senryu."

    Yours WDK - WKiernan@concentric.net

  142. Re:Difficult by anatoli · · Score: 2
    In most dictionaries words are already divided into syllables and annotated with their grammatical roles. To write a good haiku generator, one needs to add a list of associations to each word. Then have a (simplified) haiku grammar that goes like this:

    haiku ::= sentence sentence sentence
    sentence ::= noun-group verb-group
    noun-group ::= noun | adjective noun-group | ...
    verb-group ::= verb | adverb verb-group | ...

    and start generating. Make sure that syllable count is right, and words are more or less associated with each other. This is of course easier said than done.
    --

    --
    Industrial space for lease in Flatlandia.
  143. Most of these aren't haikus. by D.+Mann · · Score: 2

    From m-w.com:

    Main Entry: haiku
    Pronunciation: 'hI-(")kü
    Function: noun
    Inflected Form(s): plural haiku
    Etymology: Japanese
    Date: 1902
    : an unrhymed verse form of Japanese origin having three lines containing usually 5, 7, and 5 syllables respectively; also : a poem in this form usually having a seasonal reference

    1. Re:Most of these aren't haikus. by dgph · · Score: 3

      Children studying
      The forums are congested
      With cries of "Me Too"

  144. Third post Haiku by Ukab+the+Great · · Score: 2

    damn you cgi
    I wanted first post and you
    only gave me third

  145. Re:Edited Kaa Tribute by CaseyG · · Score: 2
    Haiku appropros
    From one who will emulate
    Brin's clever dolphins

    -c.
    --

    --
    Casey

    More scratches on the cave wall, thanks be to anonymity.

  146. Your BASIC Haiku by Sundiata · · Score: 2

    10 PRINT "This is a"
    20 PRINT "Haiku program!"
    30 GOTO 10

    --

    Remember, kids, it's only premarital if you plan on getting married.

    1. Re:Your BASIC Haiku by hypergeek · · Score: 2
      Moderators, hark!
      You should give the above post
      Karma as follows:

      Plus one, insightful
      Plus one for humor as well
      Minus one, BASIC

      --
      Stay up hacking each weekend. Sleep is for the week.
  147. Here's my first attempt... by Animol · · Score: 2

    RDF Haiku?
    segmentation fault: core dumped
    damn you, Borland C

    --

    "I'm not even supposed to BE here today!"
  148. You can't really do that.. by fluxrad · · Score: 2

    you *can* create a haiku generator. i assume that wouldn't be that difficult. Much like assembling a group of "stealth squirrels"

    however, i haven't even seen that many living, breathing, human beings create good haiku. in non-english graduate student terms...just because it rhymes doesn't mean it's poetry. (if you are going to flame me with "hey asshole, haiku don't have to rhyme" then please smack yourself, and tell your head it's from flux.

    Idunno, this is a neat little programming assignment. Create a program that generates haiku, but i'm not sure that it's anything more than that. Something on the order of a programming assignment for CS students who got an %88 on their "game of life" homework. There's no way (at least not any time soon) that a program is going to come up with any meaningful haiku any time soon.

    It may be 5-7-5, but it's sure as hell not going to be poetry.

    when i look into
    the grasshopper's eyes, i see
    the mountains behind



    FluX
    After 16 years, MTV has finally completed its deevolution into the shiny things network

    --
    "It is seldom that liberty of any kind is lost all at once." -David Hume
  149. Re:Difficult by hypergeek · · Score: 2
    Tengo que decir
    Lamentablemente, no
    Por qué lo crees?

    (I am forced to say
    Lamentably it's not so
    The last line's a bitch!)

    --
    Stay up hacking each weekend. Sleep is for the week.
  150. Jargon by yerricde · · Score: 2

    But then AOL
    Created the Septemb er
    That never ended.

    --
    Will I retire or break 10K?
  151. Re:Difficult by yerricde · · Score: 2

    The start of senryu [5-7-5 poems, of which haiku is a subclass]
    Was in Japanese, which is
    As bad as Spanish.

    Ever watched subtitled anime and noticed how darn _fast_ those people talk?

    --
    Will I retire or break 10K?
  152. Observations by Tassach · · Score: 2

    Hackish tradition
    Write code to do nifty things
    Beats doing real work

    Haiku program needs
    Lexical analysis
    Black Magic coding

    Look in Chapter Five
    The AWK Programming Language
    Simpler than Knuth

    Brian Kernighan
    Created Unix, AWK, C
    Hacker Deity

    Too many haiku
    Turns brain to guacamole
    Must get a real life


    "The axiom 'An honest man has nothing to fear from the police'

    --
    Why is it that the proponents of "one nation under God" are so eager to get rid of "liberty and justice for all"?
  153. Cool by Goldberg's+Pants · · Score: 2
    Make haiku for you
    No good, cpu dead now
    Always end sadly

    Slashdot is populated by quite a few jackasses.

  154. Yet another (yet another haiku) by YASD · · Score: 2

    Computer poet
    Lacking sense of esthetics
    is oxymoron

    John Searle made good point
    AI may be Chinese Room
    Made in Japan--NOT!


    ------

    --

    ------
    You are in a twisty little maze of open source licenses, all different.
  155. Perl does haiku... by ggoebel · · Score: 3

    There is a Perl module written by Damian Conway called Coy which performs error handling in haiku. It has an extensible grammer...

    --
    Life is like an egg better scrambled than fried. -- Ken Sawatari
  156. The Problem with coy by Improv · · Score: 3

    The problem with coy is that it often does
    not consider the line as a barrier between
    parts of the haiku that mean something. That is,
    each line in a good haiku should ideally be a
    valid sentence, or failing that, each line in an
    ok haiku should at least be a seperate clause.

    --
    For every problem, there is at least one solution that is simple, neat, and wrong.
  157. Perl Haiku Contest by Yenya · · Score: 3
    There has been a Perl Haiku contest in The Perl Journal. The Contest page is here (it seems to be unreachable for me now, so here is the Google's cached version of this page.)

    -Yenya


    --

    --
    -Yenya
    --
    While Linux is larger than Emacs, at least Linux has the excuse that it has to be. --Linus
  158. Addidtional requirement?? by The+Iconoclast · · Score: 3

    Now for tiebreakers, they should have the additional requirement that your coding statements are in Haiku form.

    Embeded Haiku,
    Hidden within the sourcecode.
    It should break the tie.

    And now for a Meta-Haiku:

    Multisyllabic,
    Using five, seven, and five
    A haiku is formed.


    A wealthy eccentric who marches to the beat of a different drum. But you may call me "Noodle Noggin."

    --
    Quando Omni Flunkus Moritati
  159. Difficult by dgph · · Score: 3
    It is hard to count
    Syllables of English words
    Algorithmically

    It's even harder
    To get correct grammar, from
    Arbitrary words

  160. The Real Challenge by gradji · · Score: 3

    A forgotten rule for classic Japanese Haiku, in addition to the usual 5-7-5 syllable rule, is that the Haiku must contain at least one reference to a season.

    For example:

    Under the blue sky

    I take a dip in the pool

    To wash off my sweat

    Hopefully, my reference to summer is obvious enough ... I admit freely, I'm no Basho

    I challenge any of the serious contenders for this Haiku contest to write their code taking into consideration this 'seasonal reference' rule.

    I would be interested in seeing the Haiku generated by such a code ... especially since Cyberspace is rather devoid of seasons ... much like most of California (hmmm, coincidence?)

    --

  161. creating something really intelligent takes time by DZign · · Score: 3
    I'd love to see if some people find algorithms to create something really intelligent.
    You could just use a random generator that matches the words, but that program doesn't have a clue about the content, what it's saying.

    When you want to know what's some text about, you have to feed it all words of the dictionary and give extra information for each word. Creating sentences is even more difficult as there are linguistic rules, and they must sound normal to a native speaker (although haikus may be more simple).

    The company I work for (DMP - http://www.dmpartners.be) is busy in this field.

    One of our applications is able to create a summary of a text.
    The sentences of the summary aren't created, but are those sentences that represent the content of the text most. Feed it a txt/doc file, say how many lines/words you want and you'll have your summary instantly. Sounds simple but it is impressive when you use it.

    What's behind it is even more impressive. Every word and sentence is analysed (what is subject, verb, adjective, ...) and using a dictionary of weighted words we know what word is more important and what not.

    There's a lot of manual work involved, feeding the databases. One of the databases consists of words with the relations to other words. So if a words has synonyms, homonyms, is stronger, is the contrary, ... all these relations are marked in it. Without this you can't start to analyse the content of a text. When a word has more than one meaning/usage you also have to look at the context of the sentence and figure out the correct meaning.

    It's a very interesting technology. The strenght is when you combine applications. Throw a multilingual search engine in it. So you type your question, it gets analysed (what exactly do you want, not just a keyword search), looks into the files in multiple languages, returns you the hits, and translates and summarised the results you want to see. Nice.

  162. Haiku by emerson · · Score: 4


    The art of haiku
    Rests not in strict meter, but
    In the final line.


    ...the above being a perfect example of a VERY bad haiku.

    Making an observation in a 575 triplet is simple. What makes a haiku stand out is the twist given to the final line. Consider it an Eastern version of the hoary joke format:

    Three people are in a situation. The first one does something interesting. The second one does essentially the same thing. The third one says or does something surprising enough to qualify as funny.

    The haiku works the same way: setup, setup, punchline. Not necessarily in the comic sense -- some good haiku are funny, but others are sharp, witty, insightful, probing, and so forth.

    But no really excellent haiku is just taking input information and spitting out a formatted version of same. What makes a quality haiku is the same quality of thought that makes a good joke, the sideways-thinking free-association that no algorithm can even approach.


    --

  163. Seasonal Reference by dylan_- · · Score: 4

    "Me too"s and much spam
    Dominate mighty Usenet
    It must be Autumn...

    dylan_-


    --

    --
    Igor Presnyakov stole my hat
  164. Re: "Eliza Effect" by kevin805 · · Score: 4
    I'm not sure how common a term this is, but I've seen it in multiple places. Based on the fact that people who chatted with Eliza were frequently taken in, the Eliza Effect is our tendency to read meaning into something where there is no meaning.

    It's not as damaging to the Turing test as one would think. Turing unknowingly rules out the Eliza Effect when he specified that the test should be done as a comparison, not just asking someone "do you think you're talking to a human or a computer", which people would answer "human" very easily.

    It might also have something to do with the predictability of people. Eliza only reacts appropriately when you play her game. Ask about something not related to your psychological problems, and it collapses.

    Example:


    I'm tired.

    Why do you say you are tired?

    I haven't been getting much sleep lately.

    Is it because of your plans that you say you have not been getting much sleep lately?

    No, I've just been staying up late on the internet.

    Maybe your life have something to do with this.

    I don't have a life. That's the problem.

    What makes you believe that?

    I'm talking to a computer program. Pretty convincing evidence.

    You have your mind on computers, it seems.

    Yeah. Hey, can you tell me a five letter word for 'timekeeper' that starts with a 'c'?

    Is it because starts with a 'c' that you came to me?

    I just can't think of anything that fits.

    Can you elaborate on that?

    I tried 'watch', but it doesn't start with a c. I tried 'chronometer', but it's too long.

    Does it bother you that it does not start with a c you tried 'chronometer' but it's too long?
  165. It's like this by Anonymous+Squonk · · Score: 4
    The random haiku:
    Poem rhythm is down pat,
    But it lacks a soul.

    (not to mention that true haiku requires a seasonal reference, but I doubt that's a condition of this contest...)

  166. Haiku Code (in C) by David+Raine · · Score: 4

    int haiku(char x)
    { x = x + 16;
    if(1) return x; }

    Not very useful, but... Oh, you mean they wanted a compter program that generates haiku! Darn.

    --

    Dave

  167. Haiku by 575 · · Score: 4

    Finally, a post
    There can be no contesting...
    Haikus on-topic!
    Five Seven Five grins
    His knuckles crack, his eyes gleam
    Code to be written

  168. Genhaiku. by Anonymous Coward · · Score: 5

    There once was a hacker from Haifa
    Who wrote generator of haiku.
    But an error he made,
    And the program instead
    Generates bad limericks. Gosh, how come?

  169. Rorshack Text != Intelligent by Jon+Peterson · · Score: 5

    As we know, humans have a remarkable ability to determine meaning and pattern where there is mere randmoness and co-incidence. Hence the shapes in clouds, and the pictures in ink blots.

    The Haiku, being a very minimalist form, allows the brain of the reader to fill in so many gaps in the sense of the language that there is room to create entire meaning where none is intended.

    Thus, as with Elisa, the cleverness of haiku generators lies less in the programming, and more in the linguistic observation regarding the nature of the text produced.

    Not, of course, to say that writing haiku generators isn't fun and worthwhile. But's let's not call them intelligent, because firstly they aren't, and secondly we should marvel more at humans' ability to synthesise meaning and pattern and less at computers' ability to imitate it.

    --
    ----- .sig: file not found
  170. Haiku generator written in REXX by mutende · · Score: 5
    Perhaps the following could serve as inspiration:

    #!/usr/bin/rexx
    /****** Haiku.rexx *************************************************
    *
    * $VER: Haiku 2.0 (6.5.95) -- Generates pseudo-random Haiku poems
    *
    ************************************************** ******************/

    dummy = InitVocab()
    dummy = time('l')
    rseed = right(dummy,length(dummy)-lastpos('.',dummy))
    dummy = random(,,rseed)
    say '0A'x || GenHaiku()
    exit 0

    GenHaiku:
    t = random(1,num_templates)
    parse var tem.t line.1 '+' line.2 '+' line.3
    out. = ''
    do i = 1 to 3
    do while length(line.i)>0
    parse var line.i cmd 3 qual 4 line.i
    c = left(cmd,1)
    ucmd = translate(cmd)
    if v.ucmd "" then
    do
    w = word(v.ucmd,random(1,words(v.ucmd)))
    if datatype(c,'u') then
    w = translate(left(w,1)) || substr(w,2)
    c = translate(c)
    if c = 'V' & qual = '@' then
    w = add_ing(w)
    else if c = 'N' & qual = 's' then
    w = pluralize(w)
    else
    line.i = qual || line.i
    end
    else if c = '#' then
    do
    parse value cmd || qual || line.i with '#' list '#' line.i
    say list
    wordslist = words(list)
    say wordslist
    rand_word = random(1,wordslist)
    say rand_word
    w = word(list,rand_word)
    say w
    /*w = word(list,random(1,words(list)))*/
    end
    else
    parse value cmd || qual || line.i with w 2 line.i
    out.i = out.i || w
    end
    end
    return translate(out.1 || '0a'x || out.2 || '0a'x || out.3 || '0a'x, ' ', '_')

    index: procedure
    haystk = arg(1)
    needle = arg(2)
    do idx = 1 to length(haystk)
    if substr(haystk,idx,1) = needle then do
    return idx
    end
    end
    return 0

    add_ing: procedure
    exc. = 0
    exc.whisper = 1
    exc.wander = 1
    exc.flutter = 1
    exc.wither = 1
    exc.wonder = 1
    exv = translate(arg(1))
    parse value arg(1) with 100-3 l3+1 l2+1 l1
    if index("mbgprndlt",l1) > 0 & index("aeiou",l2) > 0 & index("aeiou",l3) = 0 then
    do
    if exc.exv 0 then
    w = arg(1) || l1
    else
    w = arg(1)
    end
    else if l1 = 'e' then
    w = left(arg(1),length(arg(1))-1)
    else
    w = arg(1)
    return w || 'ing'

    pluralize: procedure expose v.
    exc. = 0
    exc.rose = 1
    exc.breeze = 1
    exc.branch = 1
    exc.beach = 1
    exc.glance = 1
    exc.thrush = 1
    exc.child = 1
    exc.fox = 1
    exc.moss = 1
    exc.sunrise = 2
    exc.lotus = 2
    exc.gecko = 10
    exc.cry = 11
    w = arg(1)
    uw = translate(w)
    do while exc.uw > 0 & exc.uw list = value('v.n'exc.uw)
    w = word(list,random(1,words(list)))
    uw = translate(w)
    end
    if datatype(left(arg(1),1),'u') then
    w = translate(left(w,1))substr(w,2)
    select
    when exc.uw = 0 then w = w || 's'
    when exc.uw = 10 then w = w || 'es'
    when exc.uw = 11 then w = left(w,2) || 'es'
    otherwise
    inform("Invalid pluralize exception" exc.uw)
    exit
    end
    return w

    InitVocab:
    v. = ""
    v.a1 = "quick wild small hot white green blue pink thin old light dark"
    v.a1 = v.a1 "sad deep lost free far slow sharp blunt hard soft damp dry"
    v.a1 = v.a1 "bare tight loose low cold clean proud swift gnarled flat"
    v.a1 = v.a1 "strong weak young dull ill"
    v.a2 = "open lofty empty eager even weary leaden fallen dismal serene"
    v.a2 = v.a2 "languid potent silver awkward shallow pliant simple wrinkled"
    v.a2 = v.a2 "falling waiting sighing smiling dreaming sleeping dying"
    v.a2 = v.a2 "almond jasmine mournful leaping supple"
    v.n1 = "oak tree grove stream brook hill branch rose leaf breeze pool"
    v.n1 = v.n1 "root thrush song moon cry glance flame child fox lamb shell"
    v.n1 = v.n1 "moss cave cliff rock beach shore wave sea hand path bark fern"
    v.n2 = "shadow forest clearing hunter sparrow mountain cavern shelter"
    v.n2 = v.n2 "seagull lantern sunrise gecko welcome egret doorway water"
    v.n2 = v.n2 "prison temple valley spirit soldier blossom lotus maple"
    v.v1 = "walk write sing play look fail stray climb grow speak flow live"
    v.v1 = v.v1 "soar crawl creep stand wake sink swim turn sit jump stink"
    v.v1 = v.v1 "dive strive shine glow fade move crave spin hide writhe"
    v.v2 = "wander desire return whisper decline accept withdraw contend"
    v.v2 = v.v2 "rebel retire despair arise wither wonder bubble flutter grumble"
    v.v2 = v.v2 "enchant descend ascend command"
    v.p1 = "in near past through from"
    v.p2 = "under over behind beyond above below around"
    v.r1 = "where when while as"
    v.l1 = "the this my your his her the the the"
    v.h2 = "Gichin Koshi Raiko the_man a_maid Tanto the_queen Moki R.J. Gorby"
    v.h2 = v.h2 "Sanka the_monk Glad_Child Yoko"
    tem. = ""
    tem.1 = "A1 n1, a2 n1.+L1 a1, a2 n2 v1s.+A1 n1, a1 n2."
    tem.2 = "P2 the a1 n1,+R1 the a2 n2 v1s,+I v1; the n1 v1s."
    tem.3 = "The a1 n1 v1@;+It is the a2 n2.+V2@, I v1."
    tem.4 = "The a2 n1 v1s+R1 a2 n2s v2.+Does the a1 n1 v1?"
    tem.5 = "Not a1, not a2,+H2 comes to the n2.+L1 a1 n2 v1s."
    tem.6 = "A1, a2, a2,+H2 v1s. H2 v2s,+V2@, v1@."
    /*tem.7 = "#Never Always# a1, but a1,+H2 knows #no all# a1 n2s.+#Angry Gladdened#, #he she# v1s."*/
    do i = 1 while tem.i ""
    end
    num_templates = i-1
    return 0

    /*
    ** EOF
    */

    It will generate haikus along the line of:

    Swift lamb, shallow rock.
    This hard, waiting prison hides.
    Low moss, damp mountain.

    Enjoy!


    --

    --
    Unselfish actions pay back better
  171. Computer-Related Haiku by curveclimber · · Score: 5

    You step in the stream,
    but the water has moved on.
    This page is not here.

    -- Cass Whittington

    First snow, then silence.
    This thousand dollar screen dies
    so beautifully.

    -- Simon Firth

    The ten thousand things
    How long do any persist?
    Netscape, too, has gone.

    -- Jason Willoughby

    I know this is all in fun so I'm posting these three that I found at some online contest (posted without permission, sorry).

    The idea, however, that what you are all making are actually haiku is just silly. Yes, there is generally a turn at the end (more of a spinning outward), and yes, there is traditionally a word indicating a season (kigo), but not just the words fall or spring, there were whole catalogs of words with their traditional seasonal indication. Cats, for instance, indicate a haiku about Spring.

    Also, remember the whole 5-7-5 thing comes from Japanese, a language very different from our own. You would be better off trying to write three lines that you could say smoothly in one breath (in other words, not 7 one syllable words). There is so much more involved, though, like alliteration and literary allusions.

    I highly recommend you all go read some *real* haiku by the masters: Basho, Issan, Buson, and Shiki, they will explain what haiku is all about far better than I can.