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

13
LINES

< > BotCompany Repo | #1013316 // ai_spec_ruleTextRule

JavaX fragment (include)

1  
/*
2  
  if (X is Y)
3  
  and (ai_possibleRule(X))
4  
  and (singleEllipsisMatch("the ... rule", Y))
5  
  then (post("the text of " + Y, "is", X))]
6  
*/
7  
8  
static void ai_spec_ruleTextRule(S X) {
9  
  if (!ai_possibleRule(X)) ret;
10  
  for (S Y : ai_texts(X, "is", "$X"))
11  
    if (singleEllipsisMatch("the ... rule", Y))
12  
      post("the text of " + Y, "is", X);
13  
}

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: #1013316
Snippet name: ai_spec_ruleTextRule
Eternal ID of this version: #1013316/2
Text MD5: 2f04026b21b9e3c77abe56caacf2d1d5
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-31 23:26:12
Source code size: 351 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 242 / 273
Version history: 1 change(s)
Referenced in: [show references]