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

13
LINES

< > BotCompany Repo | #1007425 // englishToConceptLanguage_simple

JavaX fragment (include)

// avoid XYZ vars in this step - seems useful, now on by default
sbool englishToConceptLanguage_simple_noXYZ = true;

sS englishToConceptLanguage_simple(S s) {
  for (AIConcept c : englishToConceptLanguage_concepts()) {
    L<S> tok = javaTokC(c.name);
    if (tok.contains("*")) continue;
    if (englishToConceptLanguage_simple_noXYZ && containsXYZVariables_c(tok)) continue;
    if (match_noEllipsis(c.name, s))
      ret c.globalID;
  }
  null;
}

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: #1007425
Snippet name: englishToConceptLanguage_simple
Eternal ID of this version: #1007425/8
Text MD5: 02e5eb62282826c3aa7ddd9dd0b931db
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-29 18:09:30
Source code size: 464 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 557 / 509
Version history: 7 change(s)
Referenced in: [show references]