static S dropArticle(S text) { S s = dropPrefixICTrim("a ", text); if (neq(s, text)) ret s; s = dropPrefixICTrim("an ", text); if (neq(s, text)) ret s; ret dropPrefixICTrim("the ", text); }
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: | #1010211 |
Snippet name: | dropArticle - drop a/an/the |
Eternal ID of this version: | #1010211/3 |
Text MD5: | d2d296014ce4e083d3e09b715f940042 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-06 20:15:50 |
Source code size: | 205 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 539 / 536 |
Version history: | 2 change(s) |
Referenced in: | [show references] |