MindForth Programming Journal
AI4U Blog -- Wed.27.AUG.2008


1. Tasks in Creating Artificial Intelligence for AI Mind Exhibits

[ ] Expand the Article module with "a" as a default.
[ ] 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.
[25.AUG.2008] Create an Article module to be called by the nounPhrase module.
[27.AUG.2008] Add "num" to en{ array to govern selection of "A" or "THE".


2. Wed.27.AUG.2008 - ENHANCING THE ARTICLE MODULE

On 25.AUG.2008 we created the Article mind-module in MindForth.
Just to demonstrate and debug its functionality, we had the new
module insert the article "THE" before nouns in the generation
of a subject-verb-object (SVO) sentence. When the user typed in,
"fish eat bugs," the AI responded, "THE FISH EAT THE BUGS."
Such arbitrary insertion of "THE" is not desirable in a
freely thinking AI Mind, but we had to demonstrate the basic
ability of our software to insert articles into its thinking.
Now we would like to enhance the Article module with the
ability to insert the indefinite article "A" before a noun.
Since the thinking software will have to make a choice
between inserting "A" or inserting "THE", we will introduce
"nphrnum" as a nounPhrase num(ber) variable derived from
the psi num(ber) flag on a noun-concept that has been selected
by the nounPhrase module for inclusion in a sentence of thought.

Now we have prevented the Forthmind from automatically inserting
"THE" by requiring the nphrnum variable to be set to a
value of two (2) for the plural number. Since nothing thus far is
changing the nphrnum variable, the AI stops saying "THE".
Next we insert code into Article for saying "A" as the indefinite
article, and we do not at first require the passing of a conditional
test. Rather goofily, the AI starts inserting "A" as the article
before all nouns in the SVO generation of sentences of thought.
For example, after we type in "fish eat bugs", the AI later says,
"A FISH EAT A BUGS". We will soon modify the Article code to make
the insertion of "A" dependent upon some sort of flag-test, but
first we have had to see that the AI was capable of inserting
the indefinite article "A" willy-nilly before each and every SVO
noun. In this regard, we often wonder if we are building up our
AI Mind functionality in roughly the same sequence as Nature
built up the functionality of the human brain-mind over time.

Now that the Article module is ready to receive and act upon
nphrnum flags coming from the nounPhrase module,
it is time to make some num(ber) flags available when nounPhrase
selects a noun to use as the subject or direct object in a thought.
Since we have not yet set any "num" flags in the enBoot sequence,
and since the "act" settings in enBoot are all at zero and are
therefore not even necessary, we will start to replace some
"act" settings with "num" settings in the enBoot sequence.

After running the AI Mind in Forth, we enter ".psi" to check
the flags (quasi-neuronal associative tags) on all the psi concepts.
We discover that setting one enBoot concept "num" flag to "1"
or "2" is causing the interstitial "num" flags to receive the
same value erroneously, so we go into Instantiate and zero out
the value of the "num" variable. The problem goes away.

Now we have "num(ber)" flag settings for all the nouns in the
English bootstrap (enBoot) psi-array sequence, as follows:
TRUTH    1 num !  singular
ROBOTS   2 num !  plural
PERSONS  2 num !  plural
PEOPLE   2 num !  plural
FEAR     1 num !  singular
KIDS     2 num !  plural
PERSONS  2 num !  plural
PERSONS  2 num !  plural
KIDS     2 num !  plural
We would like to use the above "num" settings to make
nounPhrase call the Article module with a "nphrnum" flag,
but nounPhrase selects its nouns from the English lexical
array and not from the psi conceptual array. Therefore
maybe we should insert a "num" flag into the flag-panel
of the English array. We can not simply pass the "num"
value up from the psi array, because Reify moves many
concepts up into English, not just one. Such a drastic
change in the English array flag-panel may be worthwhile,
if it turns out that it is good to fetch auditory word
engrams that are already in the plural and therefore do
not need to have a plural transformation worked on them.

In almost a repeat of when we changed the psi array in our
work of 24aug2008, we modify the following code
\ Memory channel arrays.  ATM 21jul2002; 24aug2008
cns @  8  CHANNEL  psi{  ( Mindcore concept array "psi" )
cns @  6  CHANNEL   en{  ( English lexicon array "en" )
cns @  6  CHANNEL  aud{  ( Auditory memory channel array "aud" )
by having not six (6) but seven (7) English columns in the new code:
\ Memory channel arrays.  ATM 21jul2002; 24aug2008; 27aug2008
cns @  8  CHANNEL  psi{  ( Mindcore concept array "psi" )
cns @  7  CHANNEL   en{  ( English lexicon array "en" )
cns @  6  CHANNEL  aud{  ( Auditory memory channel array "aud" )
We "fload 27aug08A.F" and enter "alife" to test the code.
It runs well, but now we must do the mutatis mutandis work
of making all the necessary changes so that all the panel-flags
bumped over by the insertion of the "num" flag will work right.

Well, when we first made the changes involving "en{" flags,
the software ran but did not work right. It kept replacing
nouns with the word "YES" -- indicating that the wrong
auditory engram-fetch tag was going down to zero and saying
"YES" as the first word found in auditory memory. We went
back in and used the Win32Forth search function to look for
all instances of "en{" in case we had overlooked any changes.
We found several instances where we had to make corrections,
including some cases from our recent insertion of "num" into
the psi flag-panel. Soon we got the AI to work beautifully.


3. Wed.27.AUG.2008 - MENTAL CONTROL OVER ARTICLES

Our MindForth code enhanced and debugged after insertion of
another "num" flag is a valuable thing that we would like to
upload soonest to the Web for archival safekeeping and
Singularity stampeding, but first we had better incorporate
at least some primitive form of AI mental control over the
selection of articles. Accordingly we will try to move the
value of psi-array "num" flags through the Reify process
into the English lexical array for discovery by the
nounPhrase module selecting nouns for inclusion in thought.
We insert into Reify the following lines of code.
    I   2 psi{ @  num !    \ 27aug2008 Passing to nounPhrase.
    num @ I   2  en{ !  \ 27aug2008 Transfer the num(ber) value.
After numerous trial runs we start to get output sometimes
using "A" with the singular and "THE" with the plural, but not
consistently. Our major achievement today was to introduce the
"num" flag into the English array and to debug the AI program
so that we eliminated any obvious errors caused by "num".
Our minor achievement was to get the Article module to
sometimes say "A" and sometimes say "THE", although the
code has not been debugged and is far from bulletproof.
We have a long way to go in differentiating between singular
and plural inputs and using the captured number values to
govern article-selection in the Article mind-module.
We also need to introduce a kind of "ghost" variable to
track topics under immediate discussion so that the
article "THE" may precede them. Then we should have an
artificial mind that uses "A" and "THE" in a way that
sounds intelligent to a human user. We will be one step
closer to passing the Turing test.


4. Wed.27.AUG.2008 - UPLOADING MINDFORTH AI

Since on 25.AUG.2008 we uploaded to SourceForge a version
of Mind.Forth that arbitrarily inserts the article "THE"
before all nouns surfacing in a subject-verb-object idea,
today we should upload our more discriminating code to http://mentifex.virtualentity.com/mind4th.html
in a semblance of continuity.


5. Notes

Potential topics for initial writings in journal webpages
- Are people competing to have the oldest or longest-living AI Mind?
- Is AI being created in secret by large, powerful organizations?
- CS textbooks should be written from an AI POV.
- These MFPJ journal entries are tantamount to a weblog.
---- (Mention how Jorn Barger created the very first weblog.)
- To what extent is Mentifex AI causing any AI evolution?
- People in other countries, especially India, are welcome to the AI.
- Living a Sci-Fi Life
- Living in a Fool's Paradise


6. Resources

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


7. 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.