First we create a file of the 19aug08A.html version of the
JavaScript AI Mind and we carry on the following baseline
conversation with the AI to see how the AI deals with the
input of first the singular noun "book" and then the word
"books" as a plural form of the same noun. We shift the AI
into Diagnostic mode in order to see what psi concept numbers
the software is assigning to each word of input by the user.
Human: cats eat fish
Robot: FISH WHAT
Human: fish eat bugs
Robot: FISH EAT BUGS
Human: bugs eat germs
Robot: BUGS EAT GERMS
Human: germs kill cats
Robot: CATS EAT FISH
Human: i have a book
Robot: YOU HAVE FEAR
Human: i like books
Robot: BOOKS WHAT
Human: books teach people
Robot: PEOPLE HAVE FEAR
(mental function suspended)
When the human (Mentifex, in this case) says, "i have a book",
the software assigns the psi number 82 to the "BOOK" word.
When the user says, "i like books", the plural form "BOOKS"
gets the psi concept number 84, because audRecog can not yet
recognize "book" as a noun-stem of the input word "books".
(The psi number 83 has been assigned to the verb "like".)
Next, near the end of the audRecog module we insert
alert("audR: subpsi psibase psi = " +subpsi+ " & " + psibase+ " & " +psi); //19aug2008
as an alert-box to show us all three quasi-psi concept values as
each character of ASCII input goes into the auditory memory channel.
We keep having to click the alert-box to close it, but we get a
pretty good idea of what values are showing up in all three variables.
After some experimenting, we put the following code at the end of audRecog:
if (psi == 0) { // 19aug2008
psi = morphpsi; // 19aug2008 Replace unknown plural with a known singular.
} // 19aug2008
psibase = 0; // 16aug2008 Reset.
morphpsi = subpsi; // 19aug2008 A hand-off to report a word-stem.
subpsi = 0; // 19aug2008 Reset.
We then had the following conversation with the AI Mind:
Human: i have a book
Robot: BOOK WHAT
Human: people make robots
Robot: ROBOTS NEED I
Human: people have books
Robot: BOOKS WHAT
(mental function suspended)
In the above conversation conducted in Diagnostic mode,
the word "book" is assigned psi concept number 76 by
the newConcept module. A little later, when the user
types in "people have books", the software no longer
treats "books" as a totally new concept, but instead
recognizes the noun-stem "BOOK" within "books" and
assigns the same psi concept number 76 to "BOOKS".
The newConcept module is probably not even called
(we could check by using an alert-box in newConcept)
and the Mind.html AI simply treats "BOOKS" as a form
of the "BOOK" concept.
This simple enhancement of our AI software is actually
a major step forward in Mentifex AI, because now for the
first time the AI Minds are able to activate a singular
concept even when its unknown plural form is encountered.
We stumbled into the groundwork for this improvement back
on 5.DEC.2007 in MindForth, when we hit upon the idea of
using incremental activation to help audRecog distinguish
between "MAKE" and "ME" in the course of human user input.
We should now upload our JSAI source code, for several reasons.
If a lightning bolt came down here right now and killed us,
it would be a shame not to have released our best AI ever.
We also want to archive the current JSAI with its minor advance,
so that the worldwide user base can run the AI through its paces.
If we were to continue coding today, we might actually make
the code worse or more cluttered than it is right now. So we
will upload the Mind.html code with an "AI Lab Notes" link to
this particular calendar-date entry in the JSAI coding journal.