1 | static MultiMap<S> dm_discord_emojiJudgementsFromChat() { |
2 | new MultiMap<S> mm; |
3 | new Matches m; |
4 | for (GazelleLine line : dm_discord_allLines()) |
5 | if (jmatch("* is a * emoji", tok_joinExtendedUnicodes(javaTok(line.text)), m)) { |
6 | S emoji = $1, judgement = $2; |
7 | print("emoji: " + emoji); |
8 | if (l(emoji) <= 2 && eqicOneOf(judgement, "positive", "negative")) |
9 | mm.put(emoji, judgement); |
10 | } |
11 | ret mm; |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1021705 |
Snippet name: | dm_discord_emojiJudgementsFromChat |
Eternal ID of this version: | #1021705/3 |
Text MD5: | 02ed0dd46e0ea172d291397960e40b33 |
Author: | stefan |
Category: | javax / discord |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-24 18:36:45 |
Source code size: | 434 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 258 / 294 |
Version history: | 2 change(s) |
Referenced in: | [show references] |