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

19
LINES

< > BotCompany Repo | #1017210 // Words To Categories [OK]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Libraryless. Click here for Pure Java version (15829L/111K).

!7

set flag NoFancyMechParsing.

sclass MatchInput > DynPrintLogWithInput {
  start { dm_useLocallyCopiedMechLists(); }
  
  void update(S s) {
    L<S> tok = printStruct(javaTokWithAngleBracketsC(print("\n> ", s)));
    SS categories = mechMapCI("Word categories");
    printStruct(categories);
    
    for (S word : tok)
      for (S key, S listName : categories) {
        if (mechSetCI(listName).contains(word))
          print(word + " => " + key);
      }
  }
}

Author comment

Began life as a copy of #1017207

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: #1017210
Snippet name: Words To Categories [OK]
Eternal ID of this version: #1017210/6
Text MD5: 5b02d8f0e041356275b365cc075bba70
Transpilation MD5: 3c4d59c25b68dbe3e6008c398b8ba466
Author: stefan
Category: javax / a.i.
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-14 12:19:15
Source code size: 487 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 319 / 836
Version history: 5 change(s)
Referenced in: [show references]