Package: wordorientation 0.1.0

Your Name

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. Methods for word co-occurrence and the phi coefficient follow Evert (2008) <doi:10.1075/z.143.13eve> and standard corpus linguistics practice for collocation and association measures.

Authors:Your Name [aut, cre]

wordorientation_0.1.0.tar.gz
wordorientation_0.1.0.zip(r-4.7-any)wordorientation_0.1.0.zip(r-4.6-any)wordorientation_0.1.0.zip(r-4.5-any)
wordorientation_0.1.0.tgz(r-4.6-any)wordorientation_0.1.0.tgz(r-4.5-any)
wordorientation_0.1.0.tar.gz(r-4.7-any)wordorientation_0.1.0.tar.gz(r-4.6-any)
wordorientation_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
wordorientation/json (API)

# Install 'wordorientation' in R:
install.packages('wordorientation', repos = c('https://yosleycarrero2025.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/yourusername/wordorientation/issues

On CRAN:

Conda:

3.00 score 2 scripts 237 downloads 6 exports 17 dependencies

Last updated from:8f27a0e226. Checks:7 WARNING, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develWARNING122
source / vignettesOK185
linux-releaseWARNING169
macos-releaseWARNING118
macos-oldrelWARNING172
windows-develWARNING78
windows-releaseWARNING58
windows-oldrelWARNING69
wasm-releaseOK107

Exports:analyze_word_orientationcooccurrence_countsexample_social_postsplot_orientation_networktokenize_postsword_orientation

Dependencies:clicpp11farverglueigraphlabelinglatticelifecyclemagrittrMatrixpkgconfigR6RColorBrewerrlangscalesvctrsviridisLite