Skip to content

Official repo for two articles, "Moralization of e-cigarette use and regulation: A mixed-method computational analysis of opinion polarization" and "Morally driven and emotionally fueled: The interactive effects of values and emotions in the social transmission of information endorsing e-cigarettes."

License

Notifications You must be signed in to change notification settings

wang-yunwen/vaping_moralizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vaping_moralizer

Official repo for the following two articles:

  1. "Moralization of E-cigarette Use and Regulation: A Mixed-Method Computational Analysis of Opinion Polarization," which has been published in Health Communication;

  2. "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)

Description

Vaping-Moralizer returns word counts of a text based on the Moral Foundations Vocabulary 2.0 and our Vaping dictionary.

Installation

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

Usage

Please see usage_sample.ipynb for reference.

About

Official repo for two articles, "Moralization of e-cigarette use and regulation: A mixed-method computational analysis of opinion polarization" and "Morally driven and emotionally fueled: The interactive effects of values and emotions in the social transmission of information endorsing e-cigarettes."

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published