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

9
LINES

< > BotCompany Repo | #1017699 // ai_verbPhraseFromThirdPerson (dirty)

JavaX fragment (include)

static S ai_verbPhraseFromThirdPerson(S s) {
  L<S> tok = javaTok(s);
  for (int i = 1; i < l(tok); i += 2)
    if (endsWithIC(tok.get(i), "s")) {
      tok.set(i, dropLast(tok.get(i)));
      break;
    }
  ret join(tok);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017699
Snippet name: ai_verbPhraseFromThirdPerson (dirty)
Eternal ID of this version: #1017699/1
Text MD5: 2639c937e289ca848c9fe640067b1fdd
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-03 14:30:10
Source code size: 232 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 482 / 513
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)