File tree Expand file tree Collapse file tree 2 files changed +9
-68
lines changed
044_afinn111SentimentAnalysis/P5 Expand file tree Collapse file tree 2 files changed +9
-68
lines changed Original file line number Diff line number Diff line change 176176 "arrogant" : " -2" ,
177177 "ashame" : " -2" ,
178178 "ashamed" : " -2" ,
179- "ass" : " -4" ,
180179 "assassination" : " -3" ,
181180 "assassinations" : " -3" ,
182181 "asset" : " 2" ,
183182 "assets" : " 2" ,
184- "assfucking" : " -4" ,
185- "asshole" : " -4" ,
186183 "astonished" : " 2" ,
187184 "astound" : " 3" ,
188185 "astounded" : " 3" ,
223220 "backing" : " 2" ,
224221 "backs" : " 1" ,
225222 "bad" : " -3" ,
226- "badass" : " -3" ,
227223 "badly" : " -3" ,
228224 "bailout" : " -2" ,
229225 "bamboozle" : " -2" ,
540536 "crushing" : " -1" ,
541537 "cry" : " -1" ,
542538 "crying" : " -2" ,
543- "cunt" : " -5" ,
544539 "curious" : " 1" ,
545540 "curse" : " -1" ,
546541 "cut" : " -1" ,
552547 "cynicism" : " -2" ,
553548 "damage" : " -3" ,
554549 "damages" : " -3" ,
555- "damn" : " -4" ,
556- "damned" : " -4" ,
557- "damnit" : " -4" ,
558550 "danger" : " -2" ,
559551 "daredevil" : " 2" ,
560552 "daring" : " 2" ,
655647 "devastating" : " -2" ,
656648 "devoted" : " 3" ,
657649 "diamond" : " 1" ,
658- "dick" : " -4" ,
659- "dickhead" : " -4" ,
660650 "die" : " -3" ,
661651 "died" : " -3" ,
662652 "difficult" : " -1" ,
663653 "diffident" : " -2" ,
664654 "dilemma" : " -1" ,
665- "dipshit" : " -3" ,
666655 "dire" : " -3" ,
667656 "direful" : " -3" ,
668657 "dirt" : " -2" ,
770759 "doubtful" : " -1" ,
771760 "doubting" : " -1" ,
772761 "doubts" : " -1" ,
773- "douche" : " -3" ,
774- "douchebag" : " -3" ,
775762 "downcast" : " -2" ,
776763 "downhearted" : " -2" ,
777764 "downside" : " -2" ,
796783 "dud" : " -2" ,
797784 "dull" : " -2" ,
798785 "dumb" : " -3" ,
799- "dumbass" : " -3" ,
800786 "dump" : " -1" ,
801787 "dumped" : " -2" ,
802788 "dumps" : " -1" ,
930916 "exultantly" : " 3" ,
931917 "fabulous" : " 4" ,
932918 "fad" : " -2" ,
933- "fag" : " -3" ,
934- "faggot" : " -3" ,
935- "faggots" : " -3" ,
936919 "fail" : " -2" ,
937920 "failed" : " -2" ,
938921 "failing" : " -2" ,
10381021 "frustrates" : " -2" ,
10391022 "frustrating" : " -2" ,
10401023 "frustration" : " -2" ,
1041- "ftw" : " 3" ,
1042- "fuck" : " -4" ,
1043- "fucked" : " -4" ,
1044- "fucker" : " -4" ,
1045- "fuckers" : " -4" ,
1046- "fuckface" : " -4" ,
1047- "fuckhead" : " -4" ,
1048- "fucking" : " -4" ,
1049- "fucktard" : " -4" ,
1050- "fud" : " -3" ,
1051- "fuked" : " -4" ,
1052- "fuking" : " -4" ,
10531024 "fulfill" : " 2" ,
10541025 "fulfilled" : " 2" ,
10551026 "fulfills" : " 2" ,
11711142 "heaven" : " 2" ,
11721143 "heavenly" : " 4" ,
11731144 "heavyhearted" : " -2" ,
1174- "hell" : " -4" ,
11751145 "help" : " 2" ,
11761146 "helpful" : " 2" ,
11771147 "helping" : " 2" ,
13691339 "irritating" : " -3" ,
13701340 "isolated" : " -1" ,
13711341 "itchy" : " -2" ,
1372- "jackass" : " -4" ,
1373- "jackasses" : " -4" ,
13741342 "jailed" : " -2" ,
13751343 "jaunty" : " 2" ,
13761344 "jealous" : " -2" ,
13771345 "jeopardy" : " -2" ,
13781346 "jerk" : " -3" ,
1379- "jesus" : " 1" ,
13801347 "jewel" : " 1" ,
13811348 "jewels" : " 1" ,
13821349 "jocular" : " 2" ,
15661533 "mope" : " -1" ,
15671534 "moping" : " -1" ,
15681535 "moron" : " -3" ,
1569- "motherfucker" : " -5" ,
1570- "motherfucking" : " -5" ,
15711536 "motivate" : " 1" ,
15721537 "motivated" : " 2" ,
15731538 "motivating" : " 2" ,
15841549 "murderous" : " -3" ,
15851550 "murders" : " -2" ,
15861551 "myth" : " -1" ,
1587- "n00b" : " -2" ,
15881552 "naive" : " -2" ,
15891553 "nasty" : " -3" ,
15901554 "natural" : " 1" ,
16011565 "nervously" : " -2" ,
16021566 "nice" : " 3" ,
16031567 "nifty" : " 2" ,
1604- "niggas" : " -5" ,
1605- "nigger" : " -5" ,
16061568 "no" : " -1" ,
16071569 "no fun" : " -3" ,
16081570 "noble" : " 2" ,
17111673 "pileup" : " -1" ,
17121674 "pique" : " -2" ,
17131675 "piqued" : " -2" ,
1714- "piss" : " -4" ,
1715- "pissed" : " -4" ,
1716- "pissing" : " -3" ,
17171676 "piteous" : " -2" ,
17181677 "pitied" : " -1" ,
17191678 "pity" : " -2" ,
17521711 "pray" : " 1" ,
17531712 "praying" : " 1" ,
17541713 "prays" : " 1" ,
1755- "prblm" : " -2" ,
1756- "prblms" : " -2" ,
17571714 "prepared" : " 1" ,
17581715 "pressure" : " -1" ,
17591716 "pressured" : " -2" ,
17651722 "prevented" : " -1" ,
17661723 "preventing" : " -1" ,
17671724 "prevents" : " -1" ,
1768- "prick" : " -5" ,
17691725 "prison" : " -2" ,
17701726 "prisoner" : " -2" ,
17711727 "prisoners" : " -2" ,
19041860 "restriction" : " -2" ,
19051861 "restricts" : " -2" ,
19061862 "retained" : " -1" ,
1907- "retard" : " -2" ,
1908- "retarded" : " -2" ,
19091863 "retreat" : " -1" ,
19101864 "revenge" : " -2" ,
19111865 "revengeful" : " -2" ,
19331887 "robing" : " -2" ,
19341888 "robs" : " -2" ,
19351889 "robust" : " 2" ,
1936- "rofl" : " 4" ,
1937- "roflcopter" : " 4" ,
1938- "roflmao" : " 4" ,
19391890 "romance" : " 2" ,
1940- "rotfl" : " 4" ,
1941- "rotflmfao" : " 4" ,
1942- "rotflol" : " 4" ,
19431891 "ruin" : " -2" ,
19441892 "ruined" : " -2" ,
19451893 "ruining" : " -2" ,
20051953 "shared" : " 1" ,
20061954 "shares" : " 1" ,
20071955 "shattered" : " -2" ,
2008- "shit" : " -4" ,
2009- "shithead" : " -4" ,
2010- "shitty" : " -3" ,
20111956 "shock" : " -2" ,
20121957 "shocked" : " -2" ,
20131958 "shocking" : " -2" ,
20461991 "slicker" : " 2" ,
20471992 "slickest" : " 2" ,
20481993 "sluggish" : " -2" ,
2049- "slut" : " -5" ,
20501994 "smart" : " 1" ,
20511995 "smarter" : " 2" ,
20521996 "smartest" : " 2" ,
20732017 "solving" : " 1" ,
20742018 "somber" : " -2" ,
20752019 "some kind" : " 0" ,
2076- "son-of-a-bitch" : " -5" ,
20772020 "soothe" : " 3" ,
20782021 "soothed" : " 3" ,
20792022 "soothing" : " 3" ,
22082151 "swindling" : " -3" ,
22092152 "sympathetic" : " 2" ,
22102153 "sympathy" : " 2" ,
2211- "tard" : " -2" ,
22122154 "tears" : " -2" ,
22132155 "tender" : " 2" ,
22142156 "tense" : " -2" ,
22412183 "timid" : " -2" ,
22422184 "timorous" : " -2" ,
22432185 "tired" : " -2" ,
2244- "tits" : " -2" ,
22452186 "tolerant" : " 2" ,
22462187 "toothless" : " -2" ,
22472188 "top" : " 2" ,
22822223 "trust" : " 1" ,
22832224 "trusted" : " 2" ,
22842225 "tumor" : " -2" ,
2285- "twat" : " -5" ,
22862226 "ugly" : " -3" ,
22872227 "unacceptable" : " -2" ,
22882228 "unappreciated" : " -2" ,
23952335 "vulnerable" : " -2" ,
23962336 "walkout" : " -2" ,
23972337 "walkouts" : " -2" ,
2398- "wanker" : " -3" ,
23992338 "want" : " 1" ,
24002339 "war" : " -2" ,
24012340 "warfare" : " -2" ,
24232362 "welcomes" : " 2" ,
24242363 "whimsical" : " 1" ,
24252364 "whitewash" : " -3" ,
2426- "whore" : " -4" ,
24272365 "wicked" : " -2" ,
24282366 "widowed" : " -1" ,
24292367 "willingness" : " 2" ,
24652403 "wreck" : " -2" ,
24662404 "wrong" : " -2" ,
24672405 "wronged" : " -2" ,
2468- "wtf" : " -4" ,
24692406 "yeah" : " 1" ,
24702407 "yearning" : " 1" ,
24712408 "yeees" : " 2" ,
Original file line number Diff line number Diff line change 1- // Daniel Shiffman
2- // http://codingtra.in
3- // http://patreon.com/codingtrain
4- // Code for: https://youtu.be/VV1JmMYceJw
1+ // AFINN 11 Sentiment Analysis
2+ // The Coding Train / Daniel Shiffman
3+ // https://thecodingtrain.com/
4+ // Part 1: https://youtu.be/uw3GbsY_Pbc
5+ // Part 2: https://youtu.be/VV1JmMYceJw
6+
7+ // https://editor.p5js.org/codingtrain/sketches/aNeMdpy-b
58
69var afinn ;
710
811function preload ( ) {
9- afinn = loadJSON ( 'afinn111.json' ) ;
12+ // Using an edited version of AFINN111 list to remove NSFW and offensive words
13+ afinn = loadJSON ( 'afinn111-edited.json' ) ;
1014}
1115
1216function setup ( ) {
You can’t perform that action at this time.
0 commit comments