MindForth Programming Journal
AI4U Blog -- Sun.24.AUG.2008


1. Tasks in Creating Artificial Intelligence for AI Mind Exhibits

[ ] Create an Article module to be called by the nounPhrase module.
[ ] Introduce intransitive verbs of being and becoming.
[ ] Recruit Motters to implement the visual recognition system.
[ ] Increase the size of the "cns" memory capacity.

[ 24.AUG.2008] Add a "num" (number) flag to the flag-panel of the psi array.


2. Sun.24.AUG.2008 - ADDING NUM(BER) TO THE PSI FLAG PANEL

On 22.AUG.2008 we added an associative "num(ber)" tag to the
flag-panel of the psi concept array in the JavaScript AI Mind,
which is a tutorial version of the MindForth AI. We then
introduced an Article module into the JSAI for selecting
"a" or "the" as an article to be used before a noun in the
generation of a sentence of thought. Because the Article module
was rather difficult to troubleshoot and debug in JavaScript,
we plan to create and debug the same module in MindForth and
then port the working Forth code into the JavaScript AI (JSAI).

First from the 1feb08A.F version of Mind.Forth we create a
24aug08A.F version to work with. At the same time, we delete
some commented-out lines that no longer seem necessary, and
we "fload" the code to make sure that it runs. It runs well.

In order to add a "num" flag for number to the psi flag-panel,
we must next change the number "7" to "8" in the following code.
\ Memory channel arrays.  ATM 21jul2002; or your ID & date.
cns @  7  CHANNEL  psi{  ( Mindcore concept array "psi" )
cns @  6  CHANNEL   en{  ( English lexicon array "en" )
cns @  6  CHANNEL  aud{  ( Auditory memory channel array "aud" )
When we make the change, the AI seems to run just as well as
before. Although we have set aside memory for an extra column
of data in the psi array, we have not yet changed the logic
of the program, so it should run just the same as before.
Now we will change many lines of code, not so much to change
the current logic, but to make it possible to write new logic
that makes use of the "num(ber)" flag.

Next we make all the changes that seem necessary throughout
the program. We load and run the code. It runs, and it
accepts input, but it does not generate any output. Why?

We ran the code in Tutorial mode, and we discovered that
the AI was calling the Think module, but then not doing
any thinking. We ran the 1feb08A.F previous version also
in Tutorial mode, and we saw that the Think module was
supposed to call other modules. So the problem seemed to
be in the Think module, where we discovered that we had
neglected to change one line of code. We changed it.
  \ I     4 psi{ @  5 = IF  \ 29aug2005 Look for nouns not verbs.
    I     5 psi{ @  5 = IF  \ 24aug2008 Look for nouns not verbs.
The program seems to run just fine now, after a change in that
one line that we had overlooked. The AI generates output, and
it follows looping chains of thought after appropriate input.
The JavaScript AI took us hours to debug after introducing
the "num" flag, but Mind.Forth only took minutes to debug.


3. Sun.24.AUG.2008 - UPLOADING MINDFORTH AI

Because the code does not do anything new, we only need to
make one upload of it to one location. We will upload to
http://mentifex.virtualentity.com/mind4th.html
with a link back to this journal entry.


4. Notes



5. Resources

For discussion of MindForth, visit the Usenet newsgroups
comp.lang.forth
comp.robotics.misc


6. Associated pages

Modules of the AI-Complete Mind-Expansion
23.AUG.2008 -- the Article module;
03.SEP.2008 -- the kbTraversal module;
17.SEP.2008 -- the kbSearch module.
25.SEP.2008 -- the beVerb module.

http://AIMind-i.com

http://mind.sourceforge.net/computationalization.html

http://mind.sourceforge.net/mind_faq.html

JavaScript AI Mind Programming Journal
http://mentifex.virtualentity.com/js080815.html
http://mentifex.virtualentity.com/js080816.html
http://mentifex.virtualentity.com/js080819.html
http://mentifex.virtualentity.com/js080822.html
http://mentifex.virtualentity.com/js080823.html
http://mentifex.virtualentity.com/js080826.html
http://mentifex.virtualentity.com/js080904.html

MindForth Programming Journal
http://mentifex.virtualentity.com/fp080824.html
http://mentifex.virtualentity.com/fp080825.html
http://mentifex.virtualentity.com/fp080827.html
http://mentifex.virtualentity.com/fp080829.html
http://mentifex.virtualentity.com/fp080831.html
http://mentifex.virtualentity.com/fp080901.html
http://mentifex.virtualentity.com/fp080903.html
http://mentifex.virtualentity.com/fp080912.html
http://mentifex.virtualentity.com/fp080917.html
http://mentifex.virtualentity.com/fp080925.html
http://mentifex.virtualentity.com/fp080927.html


Return to the
top of this page or to the
main index page.