Official repo for the following two articles:
-
"Moralization of E-cigarette Use and Regulation: A Mixed-Method Computational Analysis of Opinion Polarization," which has been published in Health Communication;
-
"Morally Driven and Emotionally Fueled: The Interactive Effects of Values and Emotions in the Social Transmission of Information Endorsing E-Cigarettes," which will be published in the International Journal of Communication (IJoC).
The code is modified from https://github.com/npmontgomery/moralizer.
Please cite as:
Yunwen Wang, Yusi Aveva Xu, Jiaxi Wu, Hye Min Kim, Jessica L. Fetterman, Traci Hong, and Margaret L. McLaughlin. "Moralization of E-cigarette Use and Regulation: A Mixed-Method Computational Analysis of Opinion Polarization." Health Communication (2022): 1-11. https://doi.org/10.1080/10410236.2022.2027640
Wang et al. (2022)
Vaping-Moralizer returns word counts of a text based on the Moral Foundations Vocabulary 2.0 and our Vaping dictionary.
We have provided the envinroment file for conda users.
conda env create -f environment.yml
conda activate vaping-moralizer
Installing en_core_web_sm by using
python -m spacy download en_core_web_sm
Please see usage_sample.ipynb for reference.