static class LastWordToLower extends P { S read(S file, L<S> tok) { if (tok.size() < 2) return null; S t = tok.get(tok.size()-2); if (t.length() == 0) return null; if (Character.isUpperCase(t.charAt(0))) return t.toLowerCase(); return null; } P derive() { return this; } P clear() { return this; } }
Began life as a copy of #1001035
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: | #1001036 |
Snippet name: | LastWordToLower (predictor) |
Eternal ID of this version: | #1001036/1 |
Text MD5: | 3b7be76e858b5f7e716159c1a9caf803 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-09-16 21:09:44 |
Source code size: | 370 bytes / 18 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 626 / 837 |
Referenced in: | #1001037 - Token prediction, multiple predictors (v5, developing) #3000382 - Answer for ferdie (>> t = 1, f = 0) |