Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1017049 // ts1_applyGroupingPrefix

JavaX fragment (include)

static VF1<ThoughtSpace1> ts1_applyGroupingPrefix() {
  ret voidfunc(ThoughtSpace1 ts) {
    S s = ts.getInput();
    if (empty(s)) ret;
    for (S prefix : sentencePrefixes_notEmpty_rev(s))
      if (cic(ts.getDefinitionTexts(prefix),
        "a grouping prefix"))
      ts.add(ProposeRewrite(s, prefix + " " + curlyBrace(trim(dropPrefix(prefix, s)))));
  };
}

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: 415 / 441
Referenced in: [show references]