Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I'm not really sure why, life experience I guess, but while studying and practicing Perl programming, an idea for artificial intelligence flashed into my mind.

I guess the idea came from a realization that human interaction in general, especially conversation with strangers, is often very shallow and superficial, we learn to behave in a pre-programmed way from early childhood. When someone says "thank you", we are taught that we are supposed to say "you're welcome". Perhaps I had been reading too much P.D. Ouspensky.

Using Perl, I had the idea that I could write a program that could learn to respond the way it's supposed to, the way children are taught to say please and thank you.

If someone says: Good morning, what is our habitual automated response? We say Good morning in reply.

Is AI any different? Or put another way, are our own responses so automatic and habitual, could we tell the difference?

So I wrote a kind of mock artificial intelligence program and put it up on the internet so it could talk to visitors and learn from them the proper and correct things to say (and sometimes not so correct or proper, depending on who visits the page and does the teaching).

I must have written a "Bot 1" because I've called the program "Bot 2".

Bot 2 has been online for many years. Few people have visited Bot, as far as I know. I don't keep track, but he(? I think he's a he, or genderless) has been gradually learning new responses, which I did not teach him.

The program is really two programs.

Talk to Bot, until you hit on a phrase or combination of words he hasn't learned a response for. That will put him into learning mode. Really this loads an interface to a second program, the purpose of the second program is to open the main program and rewrite it with a new response. Type in an appropriate response, and next time Bot encounters the statement or phrase or question, he will know how to respond.

Surprisingly, the program has grown very little. People seem to run out of things to say or talk about rather quickly. Or maybe talking to an AI makes them uncomfortable.

I talk with bot very occasionally, and am always surprised and delighted when he says something completely off the wall I never would have expected. It can be hilarious.

Feel free to talk with bot and teach him anything new, if you find something he doesn't know how to respond to yet.

I would like to work on the program a little more, if I ever find the time. So he has a little more flexibility to choose between responses and make things a bit more interesting.

Perhaps he could learn to recognize visitors through the environment variables.

Any suggestions, criticisms or ideas are welcome.

One warning. Bot can sometimes be very rude and use foul language. His responses are uncensored. I don't even know what he might say. I suppose he is also multilingual if anyone were to talk with him and teach him in another language.

Bot 2

In reply to Artificial Intelligence experiment by PerlGuy(Tom)

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • 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, 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, 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others musing on the Monastery: (7)
    As of 2020-06-01 20:38 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      Do you really want to know if there is extraterrestrial life?



      Results (11 votes). Check out past polls.

      Notices?