1 | static L<S> ai_dropLeadingAdditions_list = ll("also", "tell me"); |
2 | |
3 | static S ai_dropLeadingAdditions(S s) { |
4 | s = dropLeadingPunctuation(s); |
5 | new Matches m; |
6 | for (S a : ai_dropLeadingAdditions_list) { |
7 | if (startsWithWords(s, a, m)) s = m.rest(); |
8 | } |
9 | ret dropLeadingPunctuation(s); |
10 | } |
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: | 415 / 434 |
Version history: | 4 change(s) |
Referenced in: | [show references] |