Have you thought of using a markov matrix type setup for text generation of your bots response?
I see that you have one that responds back with random lines out of a file - but it seems to me if you had one that actually learned from "real life" text and then spat that back at a person, that would be a lot cooler.
Although I suspect "a lot cooler" is in the eye of the beholder.
I have already posted my
Radiohead song generator, and in the past I have written a Poe generator (just need to scrouge through my backup cds to see where that code went to - I could easily enough just use the Radiohead code as long as I made up the Poe XML correctly). Poe is easy/fun to make as a generator because via
Project Gutenberg you can get all of his works as well as his personal writings that are available. Becuase so much text is available to train on - his generator will output better reading text than the radiohead one which has less text to learn on.
Obviously the same could be made of pretty much anything else (Willy The Shake - or even do as I have done and point it to scan the web, or chat boards - or for real fun, the newsgroups).
I'm pretty busy at work right now - but sometime later (maybe tonight?) I will try to look at your code for the bots and see if I can easily write a quick port over to a Markov Matrix type bot.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.