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)

/*
  if (X is Y)
  and (ai_possibleRule(X))
  and (singleEllipsisMatch("the ... rule", Y))
  then (post("the text of " + Y, "is", X))]
*/

static void ai_spec_ruleTextRule(S X) {
  if (!ai_possibleRule(X)) ret;
  for (S Y : ai_texts(X, "is", "$X"))
    if (singleEllipsisMatch("the ... rule", Y))
      post("the text of " + Y, "is", X);
}

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: 240 / 271
Version history: 1 change(s)
Referenced in: [show references]