Core#
Input/Output#
Reading, writing, creating, and merging LIWC dictionaries. Each reader and
writer commits to one file format and one value-type; the caller picks
the function whose name matches the data. Two schemas validate each shape:
dx_schema for binary dictionaries and dx_weighted_schema
for weighted dictionaries (signed values allowed, e.g. for sentiment
lexicons like VADER).
Create a binary dictionary DataFrame from a category-to-terms mapping. |
|
Read a binary LIWC dictionary from a |
|
Read a binary |
|
Read a weighted |
|
Write a binary dictionary to a |
|
Write a binary dictionary to a |
|
Write a weighted dictionary to a |
|
Merge multiple dictionaries into a single dictionary. |
|
Remove one or more categories from a dictionary. |
|
A lightweight pandas DataFrame validator. |
|
A lightweight pandas DataFrame validator. |
LIWC-22 CLI#
Python wrapper for the LIWC-22 command-line tool. All seven analysis
modes are exposed as methods on Liwc22.
Wrapper around |
Word Counting#
Pure-Python LIWC-style word counting.
Count LIWC dictionary categories across documents (pure-Python). |
DDR Scoring#
Distributed Dictionary Representation — semantic scoring via word embeddings.
Score documents against dictionary categories via DDR. |
Utility#
Miscellaneous utilities and helpers.
Configure logging output for the liwca package. |