Jump to content

Recommended Posts

Okay, I got the ajax set up.  It is like a chat room. When you type something and hit send ajax sends the message and then...what?  I want to be able to create a program that can respond to things.  Maybe a database with possible entries and replies the system can make. IF i do that I will have to take into account that things can be worded differently. example:

 

what time is it?  what is the time? can you tell me what time it is?

 

See, three combos, and I don't wanna store all three combos in the database.  Can anyone help?

Link to comment
https://forums.phpfreaks.com/topic/56251-php-ai/
Share on other sites

Exactly... I've a theory on how to make it work. What if your system could run searches?  Such as at google, dictonary.com, thearsaurs.com, ask jeeves, etc. ?  Could it not then be able to find a response to any question, carry on a conversation, etc. with just a few basics programmed into its "brain"?

Link to comment
https://forums.phpfreaks.com/topic/56251-php-ai/#findComment-279435
Share on other sites

The short answer is, "No, it couldn't."

 

I don't know if you've ever had to develop a grammar, but I think you'll agree that the grammar for PHP, C, and C++ combined is more simple than the grammar that represents the English language.  Bearing in mind that humans are contextual and computers are literal, if it were possible for a computer to determine what a human intended to do based solely from text input and the context of how something was used, then the compiler / interpreter wouldn't bitch about errors; instead it would fix 99% of them for you.

 

The problem is they can't reliably do that yet, not even with something as "simple" as a programming language.

 

Understanding something through context is a recursive process; whenever we encounter a word or concept that we're unfamiliar with, we look it up and it's explained to us through words and concepts that we are familiar with.  To do so with a computer would require a massive database, probably so large that the simplest of queries would take several seconds to run.

 

Think about the complexity of this statement:  "The blade is green."

Am I referring to a metal blade?  A blade of grass?  The blade of a weapon?  Or my tongue after sucking on a hard candy?  You would need to ask me further questions yourself, refer to my previous statements, or take note of this statement in regard to my future statements.

 

And once you finally had a system that could hold a text-based conversation, you would have to program in enough error  to represent the errors an average human makes.

 

My fiance is Filipino and speaks tagolog, a language that has no concept of masculine or feminine.  Whenever she tells a story, she'll refer to the same person multiple times as any of the following: he, she, him, her, his, hers

 

Or, since we're trying to create a machine that can fool us into thinking it's a human through text, take into account all the shortcuts that people take:

gr8

u

etc.

 

Like I said, tough nut to crack!

Link to comment
https://forums.phpfreaks.com/topic/56251-php-ai/#findComment-279634
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.