static WordTokRule rule_useryWants_1(Set<S> facts) { ret new WordTokRule("Usery wants that X", "X") { run { S x_simplified = simpleSpaces_nTok(getVar("X")); if (contains(facts, x_simplified)) emit(extMarkAs answer("But " + x_simplified + " already")); else if (contains(facts, "It is impossible that " + curly(x_simplified))) emit(extMarkAs answer("No way brother")); else if (debug) print("Can't decide on: " + x_simplified); } }; }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1023220 |
| Snippet name: | rule_useryWants_1 |
| Eternal ID of this version: | #1023220/1 |
| Text MD5: | 59738c4aac9181f463c145ddf9ebc223 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-05-16 21:36:13 |
| Source code size: | 496 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 476 / 519 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1023221 - rule_iWantYouToBeMy_1 |