Download Jar. Libraryless. Click here for Pure Java version (14844L/106K).
!7 p { bot(); } answer { if (flexMatch("i'm *", s, m)) { showWeb(webFromTriples( "I", "am", $1 )); ret "OK"; } L<S> tok = nlTok5(s); int i = indexOfVerb(tok); if (i >= 0) { if (i == 1) showWeb(webFromTriples( tok.get(i), "", trimJoinSubList(tok, i+1))); else showWeb(webFromTriples( trimJoinSubList(tok, 0, i), tok.get(i), trimJoinSubList(tok, i+1))); ret "OK"; } }
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: | #1010396 |
Snippet name: | User input to diagram v1 [OK] |
Eternal ID of this version: | #1010396/5 |
Text MD5: | 8d9eadab761dc3f6273b80a247cc5942 |
Transpilation MD5: | 1dc433f7c72d83bba47c1746f1f30212 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-15 18:48:34 |
Source code size: | 499 bytes / 29 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 645 / 1242 |
Version history: | 4 change(s) |
Referenced in: | #1010409 - User input to diagram v2 [dev.] |