Metadata-Version: 2.1
Name: NRCLex
Version: 0.0.3
Summary: An affect generator based on TextBlob and the NRC affect lexicon.  Note that lexicon license is for research purposes only.
Home-page: https://github.com/metalcorebear/NRCLex
Author: metalcorebear
Author-email: mark.mbailey@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 2.7
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=2.7
Description-Content-Type: text/markdown
Requires-Dist: textblob

# NRCLex

(C) 2019 Mark M. Bailey

## About
NRCLex will generate an affect list from a body of text.  Affect dictionary is based on the National Research Council Canada (NRC) affect lexicon (see link below).

Lexicon source is (C) 2016 National Research Council Canada (NRC) and this package is **for research purposes only**.  Source: [lexicons for research] (http://sentiment.nrc.ca/lexicons-for-research/)

## Affects
Emotional affects measured include the following:

* fear
* anger
* anticipation
* trust
* surprise
* positive
* negative
* sadness
* disgust
* joy

## Sample Usage

from nrclex import NRCLex

*#Instantiate text object.*
text_object = NRCLex('text')

*#Return words list.*
text_object.words

*#Return sentences list.*
text_object.sentences

*#Return affect list.*
text_object.affect_list

*#Return affect dictionary.*
text_object.affect_dict

*#Return affect frequencies.*
text_object.affect_frequencies

