static void ai_spec_howMany(S question) { S bla = web_text(first(ai_search_dollarX(question, "counts instances of", "$X"))); if (bla == null) ret; print("bla=" + quote(bla)); int count = l(ai_search_dollarX("$X", "is", bla)) + l(ai_search_dollarX("$X", "probably is", bla)); ai_postTriple(str(count), "answers", question); }
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: | #1011635 |
Snippet name: | ai_spec_howMany |
Eternal ID of this version: | #1011635/6 |
Text MD5: | e320bab821a7aec602a9d027905f9e1c |
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-01 05:19:34 |
Source code size: | 352 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 424 / 461 |
Version history: | 5 change(s) |
Referenced in: | [show references] |