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

8
LINES

< > BotCompany Repo | #1018209 // ai_renderWordTypesForLine

JavaX fragment (include)

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

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: 245 / 288
Version history: 1 change(s)
Referenced in: [show references]