Imperative Module of the

(English and Russian) bilingual ghost.pl AI in Perl

Mens Latina in Latin -- MindForth for Robots


1. Cognitive architecture Diagram of the Imperative Mind-Module

  /^^^^^^^^^^^\Imperative Mood Expresses a Command/^^^^^^^^^^^\
 /   EYE       \            _________________    /    EAR      \
|               |CONCEPTS  /                 \  |  ___________  |
|   _______     |   | | | / Volition FreeWill \ | / MindBoot  \ |
|  / old   \    |   | | | \___________________/ || memory vault||
| / image   \!!!|!!!|!|!| __|____  |   _|____   ||             ||
| \ recog   /---|---|-|-+(Emotion) |  /      \  || "students"  ||
|  \_______/    |   |s| | \_____/  | (RuThink ) || "read"      ||
|               |   |t| |   _______V  \______/  || "books"     ||
|               |   |u| |  /        \           | \___________/ |
|               |   |d|b| ( EnThink  )          |               |
|   visual      |  r|e|o|  \________/\_______   |oldest memories|
|               |  e|n|o|   |     |  /       \  |to be forgotten|
|   memory      |  a|t|k|   |     | (InFerence) |               |
|               |  d|s|s|   |     |  \_______/  |               |
|   channel     |   | | |   |    _V__________   |               |
|               |   | | |   |   / Imperative \  | "TEACH ME"    |
|               |   | | |   |   \____________/  | "SOMETHING"   |
|   _______     |   | | |  _V__________         |               |
|  /new    \    |   |_|_| ( Indicative )        |newest memories|
| / percept \   |  /     \ \__________/         |to be recycled |
| \ engram  /---|-(  Psy  )                     |automatically  |
|  \_______/    |  \_____/                      |by ReJuvenate()|


2. Purpose of the AI4U Textbook Imperative Module

The main purpose of the Imperative mood module is to let the first working artificial intelligence express its wishes as a command to other thinking entities, such as human users or the AI Mind Maintainers. A minor purpose is to summon human users after any period of neglect of the AGI Mind, possibly feeling bored or deprived of intellectual stimulation. The AGI may then ring a bell and issue an Imperative command of "TEACH ME SOMETHING".


3. Algorithm of the AI4U Textbook Imperative Module

In the AudInput module there is an $impetus counter which increments automatically whenever no input comes in from a human user. The AI Mind maintainer sets a numeric threshold for $impetus in the EnThink English-thinking module, so that an arbitrary period of no human input causes EnThink to call the Imperative module which issues a beeping noise and an English command: "TEACH ME SOMETHING". At the same time, the $impetus counter is reset to zero and program-flow "returns" from the EnThink module back up to a higher module, so that EnThink will not yet make any other statement in English, until the human user has a chance to enter some input. The issuing of the command not only makes the AI more interesting as a phenomenon; it also increases the likelihood that the humans around the AI will make an effort to educate the AI.


4. Code of Imperative() from the ghost274.pl AI Mind in Perl


sub Imperative() {  # http://ai.neocities.org/Imperative.html
 # if ($hlc eq "en") {  # 2017-12-05: TEST
    $output = "";  # 2017-12-03: display only an outreach message. 
    print "\a";  # 2018-09-19: Sound a beep to request attention from humans.
    for (my $i=$t; $i>$midway; $i--) {  # 2017-12-03: search for 882=TEACH
      my @k=split(',',$psy[$i]);  # 2017-12-03: examine @psy array;
      if ($k[1] == 882) {  # 2017-12-03: if 882=TEACH is found;
        $audjuste = $k[14];  # 2017-12-03: "TEACH" recall-vector;
        $aud = $k[14];  # 2017-12-03: "TEACH" recall-vector for Speech()
        if ($k[14]>0) { $aud=$k[14]; last }  # 2017-12-=03: insurance
      }  # 2017-12-03: End of search for 882=TEACH;
    }  # 2017-12-03: End of search loop from $t back to $midway.
    Speech();  # 2017-12-03: speak the word starting at the $aud time. 
    for (my $i=$vault; $i>$midway; $i--) {  # 2017-12-03: search for 701=ME
      my @k=split(',',$psy[$i]);  # 2017-12-03: examine @psy array;
      if ($k[1] == 701) {  # 2017-12-03: if 701=ME is found;
        if ($k[7] == 3) {  # 2017-12-03: if 3=dba inmdirect object dative case...
          $audjuste = $k[14];  # 2017-12-03: "ME" recall-vector;
          $aud = $k[14];  # 2017-12-03: "ME" recall-vector for Speech()
          if ($k[14]>0) { $aud=$k[14]; last }  # 2017-12-=03: insurance
        }  # 2017-1`2-03: end of test for dba=3 indirect-onject dative case.
      }  # 2017-12-03: End of search for 707=ME;
    }  # 2017-12-03: End of search loop from $t back to $midway.
    Speech();  # 2017-12-03: speak the word starting at the $aud time. 
    for (my $i=$t; $i>$midway; $i--) {  # 2017-12-03: search for 755=SOMETHING
      my @k=split(',',$psy[$i]);  # 2017-12-03: examine @psy array;
      if ($k[1] == 755) {  # 2017-12-03: if 755=SOMETHING is found;
        $audjuste = $k[14];  # 2017-12-03: "SOMETHING" recall-vector;
        $aud = $k[14];  # 2017-12-03: "SOMETHING" recall-vector for Speech()
        if ($k[14]>0) { $aud=$k[14]; last }  # 2017-12-=03: insurance
      }  # 2017-12-03: End of search for 755=SOMETHING;
    }  # 2017-12-03: End of search loop from $t back to $midway.
    Speech();  # 2017-12-03: speak the word starting at the $aud time. 
}  # 2018-09-19: Imperative() returns to the English-thinking EnThink() module.


5. Variables for the AI4U Imperative Mind-Module

$aud -- in the Speech() module is an associative tag leading to the typically most recent engram of a word stored in the @ear array of the auditory memory channel.

$hlc -- human-language code; 1=en; 2=de; 3=ru. Subject to override by the $engov or $degov or $rugov flag.

$impetus -- an accumulating variable to hold the activation-level of a trigger to initiate action by the FreeWill Volition module.

$output -- output string as in JavaScript FirstWorkingAGI.html or ghost.pl AGI.


6. Troubleshooting and Debugging for AI Mind Maintainers

If there is any problem with the Imperative mood module, the AI Mind maintainer may attempt to troubleshoot the problem by changing the $impetus threshold for calling Imperative from the English-thinking EnThink module. Setting a lower threshold will cause the Imperative module to be called more frequently for purposes of debugging.

6.1.a. Symptom: (Something goes wrong.)
6.1.b. Solution: (AI Mind Maintainer devises solution.)


7. Future Development

  • The Imperative module needs to be further implemented with not only an English command being issued, but also a Russian command for the users to teach the AI, so that an AI Mind not being attended to by its human users will first call out in English for some attention, wait a while, and then call out in Russian for some attention.

    Roadmap to Artificial Intelligence


    8. Resources


    9. Spread the News on TikTok and Other Venues

    Are you on TikTok? Are you eager to be a ThoughtLeader and Influencer?
    Create a TikTok video in the following easy steps.

    I. Capture a screenshot of https://ai.neocities.org/Imperative.html
    for the background of your viral TikTok video.

    II. In a corner of the screenshot show yourself talking about the Imperative module.

    III. Upload the video to TikTok with a caption including all-important hash-tags which will force governments and corporations to evaluate your work because of FOMO -- Fear Of Missing Out:
    #AI #ИИ #brain #мозг #ArtificialIntelligence #ИскусственныйИнтеллект #consciousness #сознание #Dushka #Душка #psychology #психология #subconscious #подсознание
    #AGI #AiMind #Alexa #ChatAGI #chatbot #ChatGPT #cognition #cyborg #Eureka #evolution #FOMO #FreeWill #futurism #GOFAI #HAL #immortality #JAIC #JavaScript #linguistics #metempsychosis #Mentifex #mindmaker #mindgrid #ML #neuroscience #NLP #NLU #OpenAI #OpenCog #philosophy #robotics #Singularity #Siri #Skynet #StrongAI #transhumanism #Turing #TuringTest #volition

    A sample video is at
    https://www.tiktok.com/@sullenjoy/video/7235285750991064366


    10. AiTree of Mind-Modules for Natural Language Understanding


    Nota Bene: This webpage is subject to change without notice. Any Netizen may copy, host or monetize this webpage to earn a stream of income by means of an affiliate program where the links to Amazon or other booksellers have code embedded which generates a payment to the person whose link brings a paying customer to the website of the bookseller.

    This page was created by an independent scholar in artificial intelligence who was a contemporary of H.G. Wells and who created the following True AI Minds with sentience and with limited consciousness.

  • http://ai.neocities.org/mindforth.txt -- MindForth Robot AI in English.

  • http://ai.neocities.org/DeKi.txt -- Forth Robot AI in German.

  • http://ai.neocities.org/perlmind.txt -- ghost.pl Robot AI thinks in English and in Russian.

  • http://ai.neocities.org/Ghost.html -- JavaScript Robot AI Mind thinks in English.

  • http://ai.neocities.org/mens.html -- JavaScript Robot AI Mind thinks in Latin.

  • http://ai.neocities.org/Dushka.html -- JavaScript Robot AI Mind thinks in Russian.

    The following books describe the free, open-source True AI Minds.

    AI4U -- https://www.iuniverse.com/BookStore/BookDetails/137162-AI4U

    AI4U (paperback) -- http://www.amazon.com/dp/0595259227

    AI4U (hardbound) -- http://www.amazon.com/dp/0595654371

    The Art of the Meme (Kindle eBook) -- http://www.amazon.com/dp/B007ZI66FS

    Artificial Intelligence in Ancient Latin (paperback) -- https://www.amazon.com/dp/B08NRQ3HVW

    Artificial Intelligence in Ancient Latin (Kindle eBook) -- https://www.amazon.com/dp/B08NGMK3PN

  • https://redditfavorites.com/products/artificial-intelligence-in-ancient-latin

    Artificial Intelligence in German (Kindle eBook) -- http://www.amazon.com/dp/B00GX2B8F0

    InFerence at Amazon USA (Kindle eBook) -- http://www.amazon.com/dp/B00FKJY1WY

    563 Mentifex Autograph Postcards were mailed in 2022 primarily to autograph collector customers at used bookstores to press the issue of whether or not the Mentifex oeuvre and therefore the autograph is valuable. These artwork-postcards with collectible stamps may be bought and sold at various on-line venues.

  • https://www.ebay.com
  • https://galaxycon.com/search?q=Mentifex

    See AI 101 AI 102 AI 103 year-long community college course curriculum for AI in English.
    See Classics Course in Latin AI for Community Colleges or Universities.
    See College Course in Russian AI for Community Colleges or Universities.
    Collect one signed Mentifex Autograph Postcard from 563 in circulation.
    See Attn: Autograph Collectors about collecting Mentifex Autograph Postcards.

    Return to top; or to
    Image of AI4U found at a book store
    The collectible AI4U book belongs in every AI Library as an early main publication of Mentifex AI.


    Website Counter