wordorientation
Detect Attraction and Repulsion Between Words in Text
Provides tools to quantify how strongly pairs of words attract or repel each other in a text corpus, based on co-occurrence patterns. For each word pair, the phi coefficient (a correlation measure for binary variables) is computed from a document-term matrix and tested for significance, then classified as showing attraction (co-occurring more than chance would predict), repulsion (co-occurring less than chance would predict), or no significant relationship. A full pipeline is provided from raw text to a labeled network visualization. Unlike general-purpose pairwise correlation tools, 'wordorientation' is built specifically for text: it handles tokenization and stopword removal, applies significance-based classification rather than reporting a raw correlation coefficient alone, and produces a ready-to-plot attraction/ repulsion network.
Versions across snapshots
| Version | Repository | File | Size |
|---|---|---|---|
0.1.0 |
rolling linux/jammy R-4.5 | wordorientation_0.1.0.tar.gz |
37.0 KiB |
0.1.0 |
rolling linux/noble R-4.5 | wordorientation_0.1.0.tar.gz |
36.8 KiB |
0.1.0 |
rolling source/ R- | wordorientation_0.1.0.tar.gz |
10.9 KiB |
0.1.0 |
latest linux/jammy R-4.5 | wordorientation_0.1.0.tar.gz |
37.0 KiB |
0.1.0 |
latest linux/noble R-4.5 | wordorientation_0.1.0.tar.gz |
36.8 KiB |
0.1.0 |
latest source/ R- | wordorientation_0.1.0.tar.gz |
10.9 KiB |
0.1.0 |
2026-04-23 source/ R- | wordorientation_0.1.0.tar.gz |
0 B |