Metadata-Version: 2.1
Name: moralizer
Version: 0.1.4
Summary: > Simple tool to get the Moral Foundations counts of a given text.
Home-page: https://github.com/npmontgomery/moralizer
License: MIT
Keywords: nlp,sentiment,spacy,moral foundations
Author: npm
Requires-Python: >=3.6,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Requires-Dist: spacy (>=2.1,<3.0)
Project-URL: Documentation, https://github.com/npmontgomery/moralizer
Project-URL: Repository, https://github.com/npmontgomery/moralizer
Description-Content-Type: text/markdown

# Moralizer
> Simple tool to get the Moral Foundations counts of a given text. 

![MIT](https://img.shields.io/dub/l/vibe-d.svg?style=flat-square)
![dependencies](https://img.shields.io/david/expressjs/express.svg?style=flat-square)
![python](https://img.shields.io/badge/python-3.6%2C3.7-blue.svg?style=flat-square)

## Installation
```shell
pip install moralizer
```
SpaCy requires the following add-on.
```shell
python -m spacy download en_core_web_sm
```
## Description 
Moralizer returns word counts of a text based on the [Moral Foundations Vocabulary 2.0](https://osf.io/ezn37/) in a neat and organized JSON object or Python dictionary.

## Use

```python
from moralizer import *
```
- moralizer
  - read_json(reads in a json file)
  - read_file(input_file)
  - moralize(text, output_format=default is Python dictionary, add ".json" for output in JSON).


## Dependencies
Moralizer only uses one outside dependency, the delightfully opinionated [**spaCy**](https://spacy.io/).

## Under Construction 
- Tests
- Documentation
