Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1010999 // splitAtThirdPersonVerb

JavaX fragment (include)

1  
static Triple<S> splitAtThirdPersonVerb(S s) {
2  
  L<S> tok = nlTok(s);
3  
  int i = indexOfAny(allToLower(tok), thirdPersonVerbs());
4  
  if (i < 0) null;
5  
  ret triple(
6  
    trimJoinSubList(tok, 0, i),
7  
    tok.get(i),
8  
    trimJoinSubList(tok, i+1));
9  
}

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: #1010999
Snippet name: splitAtThirdPersonVerb
Eternal ID of this version: #1010999/2
Text MD5: f0da8ee60d37e597c5abc8281b29fbf2
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-11 03:51:39
Source code size: 251 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 405 / 436
Version history: 1 change(s)
Referenced in: [show references]