{"action":"created","issue":{"url":"https://api.github.com/repos/trinker/sentimentr/issues/80","repository_url":"https://api.github.com/repos/trinker/sentimentr","labels_url":"https://api.github.com/repos/trinker/sentimentr/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/trinker/sentimentr/issues/80/comments","events_url":"https://api.github.com/repos/trinker/sentimentr/issues/80/events","html_url":"https://github.com/trinker/sentimentr/issues/80","id":310187816,"number":80,"title":"Adversative conjunctions cause neutrality when used with a negator","user":{"login":"ashleywysocki","id":1314166,"avatar_url":"https://avatars0.githubusercontent.com/u/1314166?v=4","gravatar_id":"","url":"https://api.github.com/users/ashleywysocki","html_url":"https://github.com/ashleywysocki","followers_url":"https://api.github.com/users/ashleywysocki/followers","following_url":"https://api.github.com/users/ashleywysocki/following{/other_user}","gists_url":"https://api.github.com/users/ashleywysocki/gists{/gist_id}","starred_url":"https://api.github.com/users/ashleywysocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashleywysocki/subscriptions","organizations_url":"https://api.github.com/users/ashleywysocki/orgs","repos_url":"https://api.github.com/users/ashleywysocki/repos","events_url":"https://api.github.com/users/ashleywysocki/events{/privacy}","received_events_url":"https://api.github.com/users/ashleywysocki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-30T23:00:07Z","updated_at":"2018-04-10T02:41:44Z","closed_at":null,"author_association":"NONE","body":"I noticed when analyzing a sentence like \"But I'm not happy\" (sentiment: 0) that it differs from \"I'm not happy\" (sentiment: -0.4330127) by making it a neutral statement. However, in my understanding of adversative conjunctions, they should amplify the current clause which should make \"But I'm not happy\" more negative. I tested some other negator words (didn't, isn't, etc) and when those are used before the polarized word, adding an adversative conjunction like \"but\" always makes the sentiment score become 0. I looked at the underlying code but couldn't figure out what the issue is so while I can neutralize the adversative weight for now, I was hoping there could be a fix to this at some point."},"comment":{"url":"https://api.github.com/repos/trinker/sentimentr/issues/comments/379955643","html_url":"https://github.com/trinker/sentimentr/issues/80#issuecomment-379955643","issue_url":"https://api.github.com/repos/trinker/sentimentr/issues/80","id":379955643,"user":{"login":"trinker","id":1763278,"avatar_url":"https://avatars3.githubusercontent.com/u/1763278?v=4","gravatar_id":"","url":"https://api.github.com/users/trinker","html_url":"https://github.com/trinker","followers_url":"https://api.github.com/users/trinker/followers","following_url":"https://api.github.com/users/trinker/following{/other_user}","gists_url":"https://api.github.com/users/trinker/gists{/gist_id}","starred_url":"https://api.github.com/users/trinker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trinker/subscriptions","organizations_url":"https://api.github.com/users/trinker/orgs","repos_url":"https://api.github.com/users/trinker/repos","events_url":"https://api.github.com/users/trinker/events{/privacy}","received_events_url":"https://api.github.com/users/trinker/received_events","type":"User","site_admin":false},"created_at":"2018-04-10T02:41:44Z","updated_at":"2018-04-10T02:41:44Z","author_association":"OWNER","body":"I see what you mean.  I'll have a look when I get development time for sentimentr unless someone provides a pull request in the eman time:\r\n\r\n```\r\nlibrary(sentimentr)\r\n\r\ntest_sentences <- c(\r\n    \"I'm not happy\", \r\n    \"But I'm not happy\", \r\n    \"I didn't like it\", \r\n    \"But I didn't like it\"\r\n)\r\n \r\ntest_sentences_sentiment <- sentiment(test_sentences)\r\n\r\ndata.frame(text=test_sentences, test_sentences_sentiment)\r\n\r\n                  text element_id sentence_id word_count  sentiment\r\n1        I'm not happy          1           1          3 -0.4330127\r\n2    But I'm not happy          2           1          4  0.0000000\r\n3     I didn't like it          3           1          4 -0.2500000\r\n4 But I didn't like it          4           1          5  0.0000000\r\n\r\n```"}}
{"actor":{"display_login":"trinker"}}