EnPrep English-preposition 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 EnPrep English Preposition Module


   /^^^^^^^^\   EnPrep Inserts an English Preposition   /^^^^\ 
  /   EYE    \            ___________________          / EAR  \ 
 /            \          /  EnThink module   \        /        \ 
|              |  | |    \___________________/       | auditory | 
|   _______    |  | |          |                     | memory   | 
|  / old   \   |  | |     _____V_____________        | channel  | 
| / image   \--|----+    /  Indicative       \       |          |
| \ engram  /  | a|c|f   \___________________/       |          | 
|  \_______/   | b|o|i     |              |          |          | 
|              | s|n|b    _V_            _V_         |          | 
|   visual     | t|c|e   /En-\          /En-\        | "GHOST"  | 
|              | r|e|r  /Noun-\        /Verb-\       |          | 
|   memory     | a|p|s (Phrase )      (Phrase )      | "LIVES"  | 
|              | c|t|   \_____/        \_____/       |          | 
|   channel    | t| |       \____________/           |          |
|              |  | |       /EnNounPhrase\           |          | 
|    ______    |  | |       \ "computer" /           | "IN"     | 
|   /      \   |  | |        \__________/            |          | 
|  /  new   \  |  | |         |       |              | "THE"    | 
| /  image   \ |  |_|_    ____V___   _V_________     |          | 
| \  engram  / | /     \ / EnPrep \ / EnArticle \    |"COMPUTER"| 
|  \        /  | \ Psy / \  "in"  / \  "the"    /    |          | 
|   \______/   |  \___/   \______/   \_________/     |          |


2. Purpose of the AI4U Textbook EnPrep English Preposition Module

EnPrep forms a prepositional phrase by inserting an English preposition, plus or minus an article, in front of a noun or pronoun.


3. Function of the AI4U Textbook EnPrep English Preposition Module

The AI Mind Maintainer may ordain that any activated noun, not serving as the subject or object of a verb, may be included in a nascent thought as the object of a sufficiently activated preposition. Thus a question like "Where does Ghost live?" might be answered with "Ghost lives in the computer."


4. Code of EnPrep() from ghost325.pl AI source code in Perl


sub EnPrep() {  # http://ai.neocities.org/EnPrep.html
  if ($tpr > 0) {  # 2019-08-06: positive time-of-preposition?
    my @k=split(',',$psy[$tpr]);  # 2019-08-06: inspect @psy knowledge-nodes.
    if ($k[14] > 0) { $tkbprep = $k[14] }  # 2019-10-28: "tkbprep" for obj of prep.
    if ($k[20] > 0) { $aud = $k[20]; Speech() }  # 2019-10-30: speak the preposition.
    $tpr = 0;  # 2019-10-20: prevent carry-over.
  }  # 2019-08-06: end of test for positive time-of-preposition.
  if ($tnpr > 0) {  # 2019-10-28: positive time-of-noun-preposition?
    my @k=split(',',$psy[$tnpr]);  # 2019-10-28: inspect @psy knowledge-nodes.
    if ($k[14] > 0) { $tkbprep = $k[14] }  # 2019-10-28: "tkbprep" for obj of prep.
    if ($k[20] > 0) { $aud = $k[20]; Speech() }  # 2019-10-30: speak the preposition.
    $tnpr = 0;  # 2019-10-28: prevent carry-over.
  }  # 2019-10-28: end of test for positive time-of-noun-preposition.
  if ($tvpr > 0) {  # 2019-10-17: positive time-of-verb-preposition?
    my @k=split(',',$psy[$tvpr]);  # 2019-10-17: inspect @psy knowledge-nodes.
    if ($k[14] > 0) { $tkbprep = $k[14] }  # 2019-10-28: "tkbprep" for obj of prep.
    if ($k[20] > 0) { $aud = $k[20]; Speech() }  # 2019-10-30: speak the preposition.
    $tvpr = 0;  # 2019-10-28: prevent carry-over.
  }  # 2019-10-17: end of test for positive time-of-verb-preposition.
  EnArticle();  # 2019-08-06: say "A" or "THE" before object of [preposition.
  if ($tkbprep > 0) {  # 2019-10-28: time of object of preposition?
    my @k=split(',',$psy[$tkbprep]);  # 2019-10-28: inspect @psy knowledge-nodes.
    if ($k[20] > 0) { $aud = $k[20]; Speech() }  # 2019-10-28: obtain recall-vector.
  }  # 2019-10-28: end of test for "tkbprep" object of preposition. 
  $tkbprep = 0;   # 2019-10-28: reset for safety. 
  $prep = 0;      # 2018-11-04: reset to avoid carry-over.
  $prepgen = 0;   # 2018-11-01: reset to avoid carry-over.
  $tpr = 0;       # 2019-09-24: reset to prevent carry-over. 
  $tselo = 0;     # 2018-11-04: reset to avoid carry-over.
  $tselp = 0;     # 2018-11-04: reset to avoid carry-over.
}  # 2019-10-30: EnPrep() returns to a thought-generation module.


5. Variables for EnPrep Module of an AI with NLU

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

$objprep -- object of a preposition to be found and spoken by the EnPrep module.

$prep -- a preposition used in the EnPrep mind-module for English prepositions.

$prepcon -- prepositional condition-flag for parsing.

$prepgen -- urgency to generate a prepositional phrase.

$tkbprep -- time-in-knowledge-base of a preposition leading to its object, necessary for the EnPrep English-preposition module because the basic "tkb" flag, although obtainable at the time of fetching a preposition, is subject to mutation when the output of a preposition results in the re-entry of the preposition and the assigning of a new "tkb" value.

$tnpr -- a proposed time-of-noun-preposition flag not for storing the preposition during instantiation but rather for expressing the preposition as connected with a noun, as for example in prepositional phrases such as "the man in the street with an umbrella in his hand".

$tpr -- time-of-preposition for parsing.

$tselp -- time of selection of preposition - obsolete - was used in the EnPrep English-preposition module to make sure by calculation that a verb being sought as used with a preposition is in close temporal proximity to the preposition, so that a query may be answered correctly with a response that mentions the query-subject qv1psi and the query-verb qv2psi and the selected preposition at the beginning of a prepositional phrase.

$tvpr -- a proposed time-of-verb-preposition flag not for storing the preposition during instantiation but rather for expressing the preposition as connected with a verb-phrase, as for example in the prepositional phrase at the end of "God does not play dice with the universe.", where the preposition "with" is logically and semantically connected more to the verb-phrase "play dice" than to the noun "dice" all by itself.

$wherecon -- flag for condition of answering a where-query.


6. Troubleshooting and Debugging for AI Mind Maintainers

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


7. Future Development

The AI Minds with a concept-based artificial intelligence will evolve beyond simple subject-verb-object (SVO) thought-structures into mentalities which may include a prepositional phrase in association with any noun or verb or adjective or adverb. The seq flag may be used to attach a prepositional phrase to a previous word.

In the future, an AI Mind may be able to disambiguate sentences with prepositions in a way which reasons from the following inputs.

Human: john eats with a fork
Ghost:

Human: john is with bob
Ghost:

Human: john eats pizza with a fork
Ghost:

Human: john eats pizza with bob
Ghost:

Human: john eats pizza with anchovies
Ghost:

First the SpreadAct module must evolve sufficiently to spread action from one concept in a statement to all associated concepts -- subject, verb, object or preposition. At that point, the inputs presented above may yield an associative knowledge base that links each instance of the preposition "with" back to its truly corresponding concept, from "with Bob" back to "John"; from "with a fork" back to "eats"; and from "with anchovies" back to "pizza". The AI Mind may then be able to respond properly to queries in the following manner.

Human: Who eats pizza?
Ghost: JOHN EATS PIZZA AND BOB EATS PIZZA

Human: How does John eat pizza?
Ghost: JOHN EATS PIZZA WITH A FORK

Human: What does John eat?
Ghost: JOHN EATS PIZZA WITH ANCHOVIES
The AI will think and output each response because the concepts in the response have been activated by the SpreadAct module, and because the preliminary ideas in the knowledge base have established retroactive associations from the concept "with" to the proper antecedent.

  • Roadmap to Artificial Intelligence


    8. Resources for the AI4U Textbook EnPrep Module


    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/EnPrep.html
    for the background of your viral TikTok video.

    II. In a corner of the screenshot show yourself talking about the EnPrep 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/7227493735116852526


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