UNPKG

wink-sentiment

Version:

Accurate and fast sentiment scoring of phrases with emoticons :) & emojis ๐ŸŽ‰

317 lines (313 loc) โ€ข 5.76 kB
// wink-sentiment // Accurate and fast sentiment scoring of phrases with hashtags, emoticons & emojis. // // Copyright (C) 2017-18 GRAYPE Systems Private Limited // // This file is part of โ€œwink-sentimentโ€. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish, distribute, sublicense, // and/or sell copies of the Software, and to permit persons to whom the // Software is furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. // // This is dervied data from Emoji Sentiment Ranking 1.0. The original research // reference: Kralj Novak, Petra; Smailoviฤ‡, Jasmina; Sluban, Borut and Mozetiฤ, // Igor, 2015, Emoji Sentiment Ranking 1.0, Slovenian language resource repository // CLARIN.SI, http://hdl.handle.net/11356/1048. The derived data only includes top // emojis. The sentiment score has been computed by subtracting the ratio of negative // to total occurrences from the positive to the total occurrences and then rescaling // it to a range of -5 to +5. // The original data was published under Creative Commons - // Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license. You may // read the license at https://creativecommons.org/licenses/by-sa/4.0/ URL. // Sourced from https://www.clarin.si/repository/xmlui/handle/11356/1048 URL. var emojis = { '๐Ÿ˜‚': 1, 'โค': 4, 'โ™ฅ': 3, '๐Ÿ˜': 3, '๐Ÿ˜ญ': 0, '๐Ÿ˜˜': 4, '๐Ÿ˜Š': 3, '๐Ÿ‘Œ': 3, '๐Ÿ’•': 3, '๐Ÿ‘': 3, '๐Ÿ˜': 2, 'โ˜บ': 3, 'โ™ก': 3, '๐Ÿ‘': 3, '๐Ÿ˜ฉ': -2, '๐Ÿ™': 2, 'โœŒ': 2, '๐Ÿ˜': 2, '๐Ÿ˜‰': 2, '๐Ÿ™Œ': 3, '๐Ÿ™ˆ': 2, '๐Ÿ’ช': 3, '๐Ÿ˜„': 2, '๐Ÿ˜’': -2, '๐Ÿ’ƒ': 4, '๐Ÿ’–': 4, '๐Ÿ˜ƒ': 3, '๐Ÿ˜”': -1, '๐Ÿ˜ฑ': 1, '๐ŸŽ‰': 4, '๐Ÿ˜œ': 2, 'โ˜ฏ': 0, '๐ŸŒธ': 3, '๐Ÿ’œ': 3, '๐Ÿ’™': 4, 'โœจ': 2, '๐Ÿ˜ณ': 0, '๐Ÿ’—': 3, 'โ˜…': 1, 'โ–ˆ': 0, 'โ˜€': 2, '๐Ÿ˜ก': -1, '๐Ÿ˜Ž': 2, '๐Ÿ˜ข': 0, '๐Ÿ’‹': 3, '๐Ÿ˜‹': 3, '๐Ÿ™Š': 2, '๐Ÿ˜ด': 0, '๐ŸŽถ': 3, '๐Ÿ’ž': 4, '๐Ÿ˜Œ': 2, '๐Ÿ”ฅ': 1, '๐Ÿ’ฏ': 1, '๐Ÿ”ซ': -1, '๐Ÿ’›': 4, '๐Ÿ’': 2, '๐Ÿ’š': 3, 'โ™ซ': 1, '๐Ÿ˜ž': -1, '๐Ÿ˜†': 2, '๐Ÿ˜': 2, '๐Ÿ˜ช': 0, '๐Ÿ˜ซ': -1, '๐Ÿ˜…': 1, '๐Ÿ‘Š': 1, '๐Ÿ’€': -1, '๐Ÿ˜€': 3, '๐Ÿ˜š': 4, '๐Ÿ˜ป': 3, 'ยฉ': 1, '๐Ÿ‘€': 0, '๐Ÿ’˜': 3, '๐Ÿ“': 0, 'โ˜•': 1, '๐Ÿ‘‹': 2, 'โœ‹': 1, '๐ŸŽŠ': 4, '๐Ÿ•': 2, 'โ„': 3, '๐Ÿ˜ฅ': 1, '๐Ÿ˜•': -2, '๐Ÿ’ฅ': 1, '๐Ÿ’”': -1, '๐Ÿ˜ค': -1, '๐Ÿ˜ˆ': 1, 'โ–บ': 1, 'โœˆ': 2, '๐Ÿ”': 2, '๐Ÿ˜ฐ': 0, 'โšฝ': 3, '๐Ÿ˜‘': -2, '๐Ÿ‘‘': 4, '๐Ÿ˜น': 1, '๐Ÿ‘‰': 2, '๐Ÿƒ': 2, '๐ŸŽ': 4, '๐Ÿ˜ ': -2, '๐Ÿง': 2, 'โ˜†': 2, '๐Ÿ€': 1, '๐ŸŽˆ': 4, '๐ŸŽ…': 2, '๐Ÿ˜“': 0, '๐Ÿ˜ฃ': -1, '๐Ÿ˜': -2, 'โœŠ': 2, '๐Ÿ˜จ': -1, '๐Ÿ˜–': -1, '๐Ÿ’ค': 2, '๐Ÿ’“': 3, '๐Ÿ‘Ž': -1, '๐Ÿ’ฆ': 2, 'โœ”': 1, '๐Ÿ˜ท': -1, 'โšก': 1, '๐Ÿ™‹': 2, '๐ŸŽ„': 3, '๐Ÿ’ฉ': -1, '๐ŸŽต': 3, 'โžก': 1, '๐Ÿ˜›': 3, '๐Ÿ˜ฌ': 1, '๐Ÿ‘ฏ': 2, '๐Ÿ’Ž': 3, '๐ŸŒฟ': 2, '๐ŸŽ‚': 3, '๐ŸŒŸ': 2, '๐Ÿ”ฎ': 1, 'โ—': 1, '๐Ÿ‘ซ': 1, '๐Ÿ†': 4, 'โœ–': 2, 'โ˜': 2, '๐Ÿ˜™': 4, 'โ›„': 3, '๐Ÿ‘…': 2, 'โ™ช': 3, '๐Ÿ‚': 3, '๐Ÿ’': 2, '๐Ÿ”ช': 0, '๐ŸŒด': 3, '๐Ÿ‘ˆ': 2, '๐ŸŒน': 3, '๐Ÿ™†': 3, 'โžœ': 1, '๐Ÿ‘ป': 1, '๐Ÿ’ฐ': 1, '๐Ÿป': 3, '๐Ÿ™…': -1, '๐ŸŒž': 3, '๐Ÿ': 2, 'โญ': 3, 'โ–ช': 1, '๐ŸŽ€': 3, 'โ”': 1, 'โ˜ท': 0, '๐Ÿท': 2, '๐Ÿ™‰': 2, '๐ŸŒบ': 3, '๐Ÿ’…': 2, '๐Ÿถ': 3, '๐ŸŒš': 2, '๐Ÿ‘ฝ': 2, '๐ŸŽค': 2, '๐Ÿ‘ญ': 2, '๐ŸŽง': 2, '๐Ÿ‘†': 2, '๐Ÿธ': 3, '๐Ÿท': 2, 'ยฎ': 1, '๐Ÿ‰': 3, '๐Ÿ˜‡': 3, 'โ˜‘': 1, '๐Ÿƒ': 2, '๐Ÿ˜ฟ': -2, 'โ”‚': 2, '๐Ÿ’ฃ': 0, '๐Ÿบ': 3, 'โ–ถ': 1, '๐Ÿ˜ฒ': 0, '๐ŸŽธ': 3, '๐Ÿน': 3, '๐Ÿ’ซ': 3, '๐Ÿ“š': 2, '๐Ÿ˜ถ': -1, '๐ŸŒท': 3, '๐Ÿ’': 3, '๐Ÿ’จ': 2, '๐Ÿˆ': 3, '๐Ÿ’': 2, 'โ˜”': 1, '๐Ÿ‘ธ': 3, '๐Ÿ‡ช': 3, 'โ–‘': 0, '๐Ÿฉ': 2, '๐Ÿ‘พ': 2, 'โ˜': 2, '๐ŸŒป': 3, '๐Ÿ˜ต': 0, '๐Ÿ“’': 0, 'โ†ฟ': 3, '๐Ÿฏ': 2, '๐Ÿ‘ผ': 2, '๐Ÿ”': 1, '๐Ÿ˜ธ': 2, '๐Ÿ‘ถ': 2, 'โ†พ': 3, '๐Ÿ’': 4, '๐ŸŒŠ': 3, '๐Ÿฆ': 2, '๐Ÿ“': 3, '๐Ÿ‘‡': 1, '๐Ÿ’†': 1, '๐Ÿด': 3, '๐Ÿ˜ง': 0, '๐Ÿ‡ธ': 3, '๐Ÿ˜ฎ': 1, 'โ–“': 0, '๐Ÿšซ': -2, '๐Ÿ˜ฝ': 3, '๐ŸŒˆ': 3, '๐Ÿ™€': 2, 'โš ': 0, '๐ŸŽฎ': 2, 'โ•ฏ': 0, '๐Ÿ†': 2, '๐Ÿฐ': 2, 'โœ“': 1, '๐Ÿ‘': 0, '๐Ÿ™‡': 1, '๐ŸŸ': 2, '๐ŸŒ': 2, '๐Ÿ’‘': 3, '๐Ÿ‘ฌ': 0, '๐Ÿฃ': 2, '๐ŸŽƒ': 3, 'โ–ฌ': 2, '๐Ÿ˜Ÿ': 0, '๐Ÿพ': 3, '๐ŸŽ“': 3, '๐ŸŠ': 3, '๐Ÿซ': 1, '๐Ÿ“ท': 2, '๐Ÿ‘„': 2, '๐ŸŒผ': 4, '๐Ÿšถ': -1, '๐Ÿฑ': 3, 'โ•‘': 1, '๐Ÿธ': 0, '๐Ÿ‡บ': 3, '๐Ÿ‘ฟ': -3, '๐Ÿšฌ': 3, 'โœฟ': 2, '๐Ÿ“–': 1, '๐Ÿ’': 3, '๐ŸŒ': 3, 'โ”Š': 5, '๐Ÿฅ': 3, '๐ŸŒ€': 1, '๐Ÿผ': 1, '๐ŸŽฅ': 2, '๐Ÿ’„': 2, '๐Ÿ’ธ': 1, 'โ›”': 3, 'โ—': 1, '๐Ÿ€': 1, '๐Ÿ’‰': 2, '๐Ÿ’Ÿ': 4, '๐Ÿš—': 1, '๐Ÿ˜ฏ': 1, '๐Ÿ“': 1, 'โ•': 0, 'โ™ฆ': 2, '๐Ÿ’ญ': 1 }; module.exports = emojis;