static void ai_spec_whatIsXInY(S s) { new Matches m; if (!flexMatchIC("What is * (in|of) *", unquote(s), m)) ret; S elem = m.get(0), thing = m.get(2); // trigger required speculations post(s, "possibly related to:", elem); post(s, "possibly related to:", thing); ai_triggerSpeculationOn(thing); // harvest answers for (S text : takeFirst(ai_spec_maxAnswersToReturn(), ai_texts("$X", "is " + elem + " in", thing))) post(quote(text), "answers", s); }
Began life as a copy of #1012791
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: | #1012794 |
Snippet name: | ai_spec_whatIsXInY (or "of") |
Eternal ID of this version: | #1012794/9 |
Text MD5: | 1c862889f4d373686e169c39ddfce3e3 |
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-13 18:55:54 |
Source code size: | 494 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 444 / 451 |
Version history: | 8 change(s) |
Referenced in: | [show references] |