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

8
LINES

< > BotCompany Repo | #1011648 // ai_spec_checkFact

JavaX fragment (include)

1  
static void ai_spec_checkFact(S question) {
2  
  for (S fact : ai_texts(question, "asks about fact:", "$X")) {
3  
    if (ai_hasTriple_vary(fact, "is", "never a certain fact"))
4  
      ai_postTriple("You can never be sure about that", "answers", question);
5  
    if (ai_hasTriple_vary(fact, "is", "probably not true"))
6  
      ai_postTriple("Probably not", "answers", question);
7  
  }
8  
}

Author comment

Began life as a copy of #1011646

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: #1011648
Snippet name: ai_spec_checkFact
Eternal ID of this version: #1011648/4
Text MD5: b9c6a84ec13ab19799b4a29685a8f5d0
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-02 02:08:59
Source code size: 379 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 382 / 421
Version history: 3 change(s)
Referenced in: [show references]