| # Tool Verification | |
| ## Empath | |
| - **Package**: `empath==0.89` from PyPI. | |
| - **License**: MIT (upstream repository). PyPI metadata reports License: UNKNOWN. | |
| - **Citation**: Fast, Chen, and Bernstein, "Empath: Understanding Topic Signals in Large-Scale Text," CHI 2016. | |
| - **Local install**: `uv pip install empath==0.89`. | |
| - **Verification command**: | |
| ```bash | |
| uv run --no-sync python -c \ | |
| "from empath import Empath; e=Empath(); print(len(e.cats))" | |
| ``` | |
| Reports 194 pre-built categories. All 20 categories required by `configs/rq4_empath_categories.yaml` | |
| (communication, speaking, listen, messaging, family, friends, children, social_media, | |
| affection, sympathy, positive_emotion, negative_emotion, emotional, joy, sadness, anger, fear, | |
| nervousness, disappointment, trust) are present. | |
| ## Tokenizer divergence (Empath vs. legacy) | |
| Empath's `analyze(..., tokenizer="default")` uses `helpers.default_tokenizer = doc.split()`. That: | |
| 1. Splits on whitespace only — punctuation stays attached to tokens (`"message."`, `"family,"`). | |
| 2. Does *not* lowercase — `"Friend"` does not match the lowercase `"friend"` term. | |
| The legacy RQ4 pipeline (`scripts/analysis/rq4_bin_characterization.py`) tokenizes with | |
| `re.compile(r"\b\w+\b").findall(text)` (lowercased via `re.IGNORECASE` on the alternation). | |
| That is the tokenizer reused here for **all** counters (pronouns, mental-state verbs, | |
| Empath categories) so per-1k densities are computed against a shared word count. | |
| Consequence: optimized Empath counts are a **strict super-set** of Empath's own | |
| `analyze()` counts on the same text, because punctuation/case stripping recovers | |
| hits Empath's default tokenizer drops. Verified on sample English text in | |
| `tests/test_rq4_lexical_counters.py::test_empath_optimized_is_superset_of_api`. | |
| This choice is documented in the artifact README so reviewers can audit it. | |
| ## Tools NOT used in the main path | |
| - **LIWC / LIWC-22**: rejected — paid, proprietary, conflicts with the open-data, end-to-end | |
| reproducibility commitment. | |
| - **psyLex**: rejected — LIWC-style `.dic` parser. With LIWC dictionaries reintroduces the | |
| proprietary dependency; without, adds no value over transparent in-repo counters. | |
| - **NRC EmoLex**: rejected for the main artifact bundle — official access terms prohibit | |
| redistribution of the lexicon data. Could be added as an optional runtime-download path | |
| if the authors decide to override that policy. | |
| - **VADER**: not used in the main run. Easy to add later as an optional appendix robustness | |
| check; tracked in the risk register. | |
| - **Closed hosted text analyzers**: rejected -- non-reproducible. | |
Xet Storage Details
- Size:
- 2.63 kB
- Xet hash:
- 45097293d6cb842ee0c0754b0ea1bb8666d0c9b3deb95e85c05888f9104d4678
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.