Skip to content

wordorientation

0.1.0

Detect Attraction and Repulsion Between Words in Text

0packages depend
37downloads / year
93.3%test coverage
8/8checks pass

Overview

About
Maintained by Yosley CarreroFirst published 2026-08-081 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
8OK
Slowest check: 49 s · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.37
93.3%
Coverage · measured lines
100%
Documentation · exports
4
Dependencies · direct
Check history
  • OK2026-08-09
    6 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 229 wordsVignettesNopkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
80%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

37
CRAN downloads in the past year
Rank #24,879 · ~0/day · ~3/mo
wordorientation
Daily download trend is not available in this view yet.

Repository

Repository
0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2026-08-03

Repository practices

Upstream repositoryBeta

Repository github.com/yosleycarrero2025/wordorientation is linked, but repository-practices checks have not run for it yet.

How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
Imports (4)
statsgraphicsigraphscales
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

1 release. R releases are shown for context.

  • 0.1.0Latest
    2026-08-08 · current release
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-08-08
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5.0
Download size
not tracked yet
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("wordorientation")
Carrero, Y. (2026). wordorientation: Detect Attraction and Repulsion Between Words in Text (Version 0.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.wordorientation

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for wordorientation version 0.1.0 [Data set]. HJJB, LLC. Data release v2026-08-11. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-11, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy