1 | static S ai_matrix_verbToAnswer(S s) { |
2 | if (eqic(s, "is")) ret "yes"; |
3 | if (eqic(s, "is not")) ret "no"; |
4 | if (swic(s, "under ")) null; // results of matrix functions clutter up matrix page |
5 | new Matches m; |
6 | if (ewic(s, " is", m)) |
7 | ret m.rest(); |
8 | if (ewic(s, " is not", m)) |
9 | ret m.rest() + " not"; |
10 | null; |
11 | } |
Began life as a copy of #1013071
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: | #1013073 |
Snippet name: | ai_matrix_verbToAnswer |
Eternal ID of this version: | #1013073/4 |
Text MD5: | 1e1ae06f749e02e5891c045b9371474f |
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-27 07:54:44 |
Source code size: | 326 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 416 / 421 |
Version history: | 3 change(s) |
Referenced in: | [show references] |