1 | static S dropArticle(S text) { |
2 | S s = dropPrefixICTrim("a ", text); |
3 | if (neq(s, text)) ret s; |
4 | s = dropPrefixICTrim("an ", text); |
5 | if (neq(s, text)) ret s; |
6 | ret dropPrefixICTrim("the ", text); |
7 | } |
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: | 541 / 539 |
Version history: | 2 change(s) |
Referenced in: | [show references] |