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: 449 / 466
Version history: 5 change(s)
Referenced in: [show references]