Thats right Unreality ;
There are a lot of directions the code may branch off;
As inful displayed the initial Pass of the text give us some tools to understand the structure of the sentence; Which enables to determine sentence meaning ; and intent;
very early in AI everything hard-coded. no surprises / no interesting conversation .(first wave)
Early in AI we used Text files to store data... the problem was, the answers that were being extracted were random and loose; Conversations were often funny and surprising. (first wave)
We started using Keyword/Response Question Answer (Eliza / Alice type) this also gave funny a little more directed conversation the mix of techniques gave for interesting responses; We attempted to create Auto-topic brains the collection of data became larger it seemed to learn conversation and share conversations between users. AI could actually talk to one another at that time and have strange conversations. [/li]
We changed from text files to Databases to have greater Query ability of the collected data.....the conversation quality went down and That random nature was lost; but the AI become More focused to stored data.[/i]
Now we build natural language arguments to give sense to collected information to give the AI the ability to have some structured knowledge; the conversation is much more factual. it would seem sentence understanding has grown.
Now with modals and intents Userintention and AIintention can be modelled accordingly. before we used random emotions; now we use sentiment analysis.
The conversation quality has risen and fallen ; the AI understanding has grown; The sentiment and emotional response much more TRUE.
This is why AI has become more complicated... The AI has grown over the years .... the techniques have become intricate; the data collected more focused;
This is why Other developers can take short cuts. but they loose the understanding of why we are at this stage or why we need to go to the next level of understanding of human conversation ; Although the intuition is to design a human. the true goal is to create a great conversationalist ... hence the loebner prize. pattern recognition plays a large role in recognising Sentences and clauses.
We are now modelling the human body reactions in an AI;
why do we feel;
what do we feel;
how do wee feel;
ie: emotions; Its like teaching a child to read; it needs to be able to understand book 1 English ....
"Here is peter"...
"Here is jane" .
"here is pat the dog."
beginning to associate words with pictures at the same time as learning the meaning of words and sentences.
Right now with a combination of techniques a very rich talking character can be created ... a lot of Predicates saved... and give the perception of a passable person. but still for the creator it would seem trivial as still you can technically predict the responses to be given... Questions in your mind arise ... does it know what i'm actually saying ? does it understand? right now we could also be at that stage.... So its possible to complete something great right now! I will say that there is no wrong way but also no perfect way yet. there are new tools and librarys being created daily great tools that can take us further.... great ideas from fantasizers and developers alike. actually all need to be investigated discounted or used. An idea discounted is just another learning curve......
in all the analysis routines in the script before response generation as much structure and data is collected as possible; maximun learning is important. currently responses are generally answers to questions etc functional...... right now they are not generated or constructed (a few are) Currently generating a sentence with less than 5 n_grams still produces strange sentences; grammatically correct yet senseless... With AI attached to sentence generation the sentences are focused. so response generation - an ai constructed answer instead of a stored answer. will soon be possible.
and again i say potentially... its not gospel!
Eating Ice cream can make john fat <<<<< Formal logic / Propositional Logic (True/False) >>>> Deductive content <<<<< ICECREAM> HAPPY> <JOHN EATING> JOHN PERSON/MAN ICECREAM/FOOD (EATING -ACTION) EAT/EATEN /ATE EATING /EATER (DATE/TIME) (FREQUENCY)
There are a lot of possible information can be saved from a simple sentence and a lot of possible responses ;
The response evaluation process / and data collection process are Separate there may be many responses generated in the branches.... Focus and Evaluation / behaviour / time of day... these all become a few of the factors to consider when selecting the correct response for the sentence entered. it could e said this is the conscious bit these decision making.... but again it becomes mathematical/ statistical/ probabilistic....consciously which response would we select as humans..... some come with the first thing that comes into their mind.... some consider all the options..... some always react emotionally ... Is it this which denotes our conscious choices? our evaluation routines....