get_nrc_sentiment: Get Emotions and Valence from NRC Dictionary

Description Usage Arguments Value References

View source: R/syuzhet.R


Calls the NRC sentiment dictionary to calculate the presence of eight different emotions and their corresponding valence in a text file.





A character vector


A data frame where each row represents a sentence from the original file. The columns include one for each emotion type as well as a positive or negative valence. The ten columns are as follows: "anger", "anticipation", "disgust", "fear", "joy", "sadness", "surprise", "trust", "negative", "positive."


Saif Mohammad and Peter Turney. "Emotions Evoked by Common Words and Phrases: Using Mechanical Turk to Create an Emotion Lexicon." In Proceedings of the NAACL-HLT 2010 Workshop on Computational Approaches to Analysis and Generation of Emotion in Text, June 2010, LA, California. See:

syuzhet documentation built on May 19, 2017, 7:50 p.m.
Search within the syuzhet package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.