1 | static VF1<ThoughtSpace1> ts1_applyGroupingPrefix() { |
2 | ret voidfunc(ThoughtSpace1 ts) { |
3 | S s = ts.getInput(); |
4 | if (empty(s)) ret; |
5 | for (S prefix : sentencePrefixes_notEmpty_rev(s)) |
6 | if (cic(ts.getDefinitionTexts(prefix), |
7 | "a grouping prefix")) |
8 | ts.add(ProposeRewrite(s, prefix + " " + curlyBrace(trim(dropPrefix(prefix, s))))); |
9 | }; |
10 | } |
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: | #1017049 |
Snippet name: | ts1_applyGroupingPrefix |
Eternal ID of this version: | #1017049/1 |
Text MD5: | 94b10d518fda13895a81635767c5be9d |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-11 14:01:27 |
Source code size: | 370 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 416 / 442 |
Referenced in: | [show references] |