I think I have found the error in my code that results in the four words making random results sometimes.
The word used for the four words is the same, thus each word is a extrapolation or meaning of this word.
For this a thesaurus would be better.
Instead of one word being defined by four words, the four words should each define one word.
Thus if one definition is wrong, than gigo (garbage in garbage out), so why should the other three words be rewording garbage?
So to avoid redefining garbage, the three other words must define something else.
The question is what could these other things be, input from the shortened sentence? Or definitions from a thesaurus?
I theorize definitions from a thesaurus since when somebody asks for a redefinition of something they do not understand they do not want some unrelated information.
Like a bunch of dolls arranged and the code says ‘look at that’, you say redefine, the code says ‘the third one from the right’, you say redefine, the code says ‘on the top shelf’, you say ‘ok’.
See how that went from undefined to defined the redefined three times? This is the four balloons, and this is how a thesaurus works, it gives multiple definitions to things or words.
Failure of intelligence is to give a redefinition of a sum that ends in the same sum = failed defense.
Intelligence is to give redefinition that changes the sum of what was defined before = sucessful offense.
But this is logical, what happens when the definition of something isn’t real but depicting reality?
Then if the depicted reality is defined it’s not real in context of reality.
So a thesaurus wouldn’t work here.
Instead a definition that changes the context of the definition is needed, then the thesaurus could be used in that extended context.
So the four balloons needs to be able to not only use the thesaurus, but redefine the context the thesaurus is used, if it’s used in depicted or actual reality.
Then what happens if nether the thesaurus definition, or redefined context of the definition is sufficient?
Then it may be the user is irrational, theorizing the sum is different when it is not, for psychological or emotional reasons the code doesn’t understand.
Then the four balloons needs a redefinition of the context that results in a definition that is suitable for this type of user.
So the four balloons goes from describing only,
to redefining the context the description belongs to,
to redefining the context to suit irrational behavior and defining things under that circumstance.
Resulting in awareness of the human world and every possible definition to act appropriately in this awesome situation.
Definition resulting in GiGo, means give the appropriate definition ,then context definition, then impossible situation definition.
I haven’t been getting any feedback on my project outside of you people here, so I have to say thank you for showing me all you have.
Now I have some sort of formula for making artificial intelligence I need to think of first learning a programming language then going through each step I listed above. I have the step where sometimes the result if garbage, but sometimes it’s ok. So from there I need to be able to use the thesaurus, then redefine the context the definition is set in, so two more steps before I have a simple working program.
What do I need to do to get these extra two steps done? I need a thesaurus for one, where will I get that I wonder?
Then I need to use the thesaurus in my code then generate some sort of code that gets a sentence not just a word that is logical from the program. How will I make this sentence without hard coding it in the program I wonder?
I was thinking of learning javascript, then porting my code to javascript and then making a chatbot, then putting my codes functionality into my chatbot, but now I see the aiml has some problems with that.
So I need that thesaurus then make the sentence from the program, not hard coded in, then I can look at the next step which is the program changing the context it gives it’s definition in.
So for now I quit, I will think of what to do next, which language to learn, and where to get that thesaurus, or maybe I just quit.
But thanks for all your input.