static L<S> ai_dropLeadingAdditions_list = ll("also", "tell me"); static S ai_dropLeadingAdditions(S s) { s = dropLeadingPunctuation(s); new Matches m; for (S a : ai_dropLeadingAdditions_list) { if (startsWithWords(s, a, m)) s = m.rest(); } ret dropLeadingPunctuation(s); }
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: | #1010926 |
Snippet name: | ai_dropLeadingAdditions ("also, ..." etc) |
Eternal ID of this version: | #1010926/5 |
Text MD5: | dcd41b067223b2a2384261cf8c8a9fff |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-08 23:12:40 |
Source code size: | 299 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 416 / 434 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |