Metadata-Version: 2.1
Name: liwc-text-analysis
Version: 1.0.2
Summary: A python package for the Linguistic Inquiry and Word Count (LIWC) dictionary.
Home-page: https://github.com/evanll/liwc-text-analysis-python
Author: Evan Lalopoulos
Author-email: evan.lalopoulos.2017@my.bristol.ac.uk
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: atomicwrites (==1.3.0)
Requires-Dist: attrs (==19.1.0)
Requires-Dist: importlib-metadata (==0.19)
Requires-Dist: more-itertools (==7.2.0)
Requires-Dist: packaging (==19.1)
Requires-Dist: pluggy (==0.12.0)
Requires-Dist: py (==1.8.0)
Requires-Dist: pyparsing (==2.4.2)
Requires-Dist: pytest (==5.1.2)
Requires-Dist: six (==1.12.0)
Requires-Dist: wcwidth (==0.1.7)
Requires-Dist: zipp (==0.6.0)

[![Build Status](https://travis-ci.org/evanll/liwc-text-analysis-python.svg?branch=master)](https://travis-ci.org/evanll/liwc-text-analysis-python)

# LIWC Text Analysis - Python
A python package for the Linguistic Inquiry and Word Count (LIWC) dictionary. This package requires the proprietary LIWC dictionary file (.dic), that can be obtained from [LIWC.net](http://liwc.net/). 

## Usage
```python
>>> from liwc import Liwc
>>> liwc = Liwc(LIWC_FILEPATH)
>>> # Search a word in the dictionary to find in which LIWC categories it belongs
>>> print(liwc.search('happy'))
['affect', 'posemo']
>>> # Extract raw counts of words in a document that fall into the various LIWC categories
>>> print(liwc.parse('I love ice cream.'.split(' ')))
Counter({'verb': 1, 'present': 1, 'affect': 1, 'posemo': 1, 'bio': 1, 'sexual': 1, 'social': 1})
```
## Tests
The project comes with an extensive set of unit tests. The Pytest framework is used for unit testing. 
To run the tests use:  
`pytest`

## Project repository
https://github.com/evanll/liwc-text-analysis-python

## Author
Written by Evan Lalopoulos <evan.lalopoulos.2017@my.bristol.ac.uk>

**Evan Lalopoulos** - [evanll](https://github.com/evanll)


