1 | static S ai_makePartQuestion(S chatName, S id) {
|
2 | if (empty(id)) null; |
3 | for (S aThing : ai_texts_verified(id, "is", "$X")) {
|
4 | L<S> parts = ai_partsOf(aThing); |
5 | for (S part : unnull(parts)) {
|
6 | S thePart = ai_spec_allWords(part + " of " + id); |
7 | if (ai_text(thePart, "is", "$X") != null) continue; |
8 | S q = "What is its " + drop_a_an_the(part) + "?"; |
9 | post("Open question in " + chatName, "is", thePart);
|
10 | ret q; |
11 | } |
12 | } |
13 | null; |
14 | } |
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: | #1012202 |
| Snippet name: | ai_makePartQuestion |
| Eternal ID of this version: | #1012202/5 |
| Text MD5: | 3eb5e3c0147da06f06b84c0b8ecf5841 |
| 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-23 20:19:54 |
| Source code size: | 473 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 624 / 663 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |