Uses 911K of libraries. Click here for Pure Java version (3555L/19K).
!7 cmodule IWantYouToBe > DynPrintLog { transient WordTokRule rule = wordTokReplacerRule( "I want you to be my assistant", "assistant", "I want that {you are my assistant}"); <A extends RuleOnString> A process(A rule, S s) { rule.process(s); ret rule; } start-thread { assertNull(process(rule, "I want you to be his friend").map); printStruct(assertEquals(litcimap("assistant", "girl"), process(rule, "I want you to be my girl").map)); assertEmitsContainIC(rule, "I want that {you are my girl}"); printDone(); } }
Began life as a copy of #1023161
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: | #1023175 |
Snippet name: | I want you to be... [prelude spike v2] |
Eternal ID of this version: | #1023175/6 |
Text MD5: | 02c70c883b2551bcd2c8ad592d41c548 |
Transpilation MD5: | 5913f42e89887567979f4e85c7db4173 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-05-15 23:47:34 |
Source code size: | 580 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 255 / 384 |
Version history: | 5 change(s) |
Referenced in: | [show references] |