1 | static S firstVerb(S s) { |
2 | L<S> tok = nlTok(s); |
3 | int i = indexOfFirstVerb(tok); |
4 | if (i < 0) null; |
5 | S v = get(tok, i); |
6 | if (eqicOneOf(get(tok, i-2), "can", "will", "should")) ret get(tok, i-2) + " " + v; |
7 | ret v; |
8 | } |
Began life as a copy of #1011012
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: | #1011062 |
Snippet name: | firstVerb |
Eternal ID of this version: | #1011062/6 |
Text MD5: | d1a1c0ef8baee2b239ec80fdf913167f |
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-12 01:06:47 |
Source code size: | 225 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 523 / 523 |
Version history: | 5 change(s) |
Referenced in: | [show references] |