Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1011437 // ai_spec_addQuestionsToChatLine (spec = speculative = checks if it's a chat line first, so safe to call on anything)

JavaX fragment (include)

static void ai_spec_addQuestionsToChatLine(S line) {
  S text = ai_textOfChatLine(line);
  if (empty(text)) ret;
  if (containsWord(text, "it")) {
    ai_postTriple(line, "begs the question", quote([[What is "it"?]]));
    ai_postTriple(line, "see:", [[The "it" in ]] + line);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1011437
Snippet name: ai_spec_addQuestionsToChatLine (spec = speculative = checks if it's a chat line first, so safe to call on anything)
Eternal ID of this version: #1011437/6
Text MD5: 8a728230c4644325bad8335ba271eabb
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-31 18:39:45
Source code size: 289 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 523 / 540
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1011586 - ai_spec_addQuestionsToAdjective
#1011595 - ai_spec_isAQuestion
#1011629 - ai_spec_similarWord
#1011645 - ai_spec_doYouThink
#1011788 - ai_spec_webContents