Uses 911K of libraries. Click here for Pure Java version (7893L/41K).
!7 cmodule Maybe > DynPrintLog { start-thread { dm_useLocalMechListCopies(); L<WordTokRule> rules = map wordTokReplacerRuleOnXY(tlftj([[ I'm drinking X => I drink X I drink the wrong stuff => {I drink X} and {it is wrong to drink X} X and Y => X X and Y => Y {I drink X} and {it is wrong to drink X} => I do {something wrong} I do something wrong => bad I do something good => good ]])); S s = "maybe i'm drinking the wrong stuff"; pnl(uniquifyMap tok_dropCurlyBrackets(iterateHull(func(S s) -> LS { listPlusNempties( applyWordTokRules(rules, s), tok_dropCurlyBrackets(s), ai_dropFillers1(s), ai_groupTheAdjectiveNoun(s)) }, s))); } }
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: | #1023502 | 
| Snippet name: | Maybe [OK] | 
| Eternal ID of this version: | #1023502/27 | 
| Text MD5: | a839199502d9a5ce630b1d9e939b2b23 | 
| Transpilation MD5: | 843a918bbca146a901b4ce66802c83a6 | 
| Author: | stefan | 
| Category: | javax / logic engines | 
| Type: | JavaX source code (Dynamic Module) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2019-06-27 00:08:48 | 
| Source code size: | 784 bytes / 27 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 577 / 1284 | 
| Version history: | 26 change(s) | 
| Referenced in: | #1023524 - Watch this trick [logic engine example, dev.] |