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

8
LINES

< > BotCompany Repo | #1018209 // ai_renderWordTypesForLine

JavaX fragment (include)

1  
sS ai_renderWordTypesForLine(S s) {
2  
  new LS out;
3  
  for (S word : uniquify(words2(s))) {
4  
    LS cats = ai_categoriesForWord(word);
5  
    out.add(word + ": " + (empty(cats) ? "unknown" : joinWithComma(map angleBracketCategoryToText(cats))));
6  
  }
7  
  ret lines(out);
8  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018209
Snippet name: ai_renderWordTypesForLine
Eternal ID of this version: #1018209/2
Text MD5: 9b057044d37dea30ad84850db3ea5eb1
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-10 12:04:21
Source code size: 269 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 330 / 371
Version history: 1 change(s)
Referenced in: [show references]