liwca#

liwca is a Python helper library for working with LIWC dictionaries. It is useful when you want end-to-end pipelines or notebook workflows that don’t require the LIWC-22 app to be open, or when you just need reusable .dic[x] file I/O without writing it from scratch every project.

pip install liwca

Features#

  • I/O — Read, write, and merge .dic and .dicx dictionary files

  • Word Counting — Pure-Python LIWC-style word counting, no LIWC-22 required

  • DDR Scoring — Semantic scoring via word embeddings (DDR)

  • Fetching Dictionaries — Download and cache public LIWC-format dictionaries on demand

  • LIWC-22 CLI — Python wrapper for the LIWC-22 command-line tool