1 | static void ai_spec_howMany(S question) { |
2 | S bla = web_text(first(ai_search_dollarX(question, "counts instances of", "$X"))); |
3 | if (bla == null) ret; |
4 | print("bla=" + quote(bla)); |
5 | int count = |
6 | l(ai_search_dollarX("$X", "is", bla)) |
7 | + l(ai_search_dollarX("$X", "probably is", bla)); |
8 | ai_postTriple(str(count), "answers", question); |
9 | } |
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: | 425 / 462 |
Version history: | 5 change(s) |
Referenced in: | [show references] |