1 | static S ai_verbPhraseFromThirdPerson(S s) { |
2 | L<S> tok = javaTok(s); |
3 | for (int i = 1; i < l(tok); i += 2) |
4 | if (endsWithIC(tok.get(i), "s")) { |
5 | tok.set(i, dropLast(tok.get(i))); |
6 | break; |
7 | } |
8 | ret join(tok); |
9 | } |
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: | 483 / 515 |
Referenced in: | [show references] |