wink-sentiment
Version:
Accurate and fast sentiment scoring of phrases with emoticons :) & emojis ๐
317 lines (313 loc) โข 5.76 kB
JavaScript
// 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;