Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

comment on

( [id://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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-03-29 00:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found