Skip to content

SemanticDistance

0.1.1Package record

Compute Semantic Distance Between Text Constituents

0packages depend
5.3Kdownloads / year
19.8%test coverage
13/13flavors OK

Overview

About

Cleans and formats language transcripts guided by a series of transformation options (e.g., lemmatize words, omit stopwords, split strings across rows). 'SemanticDistance' computes two distinct metrics of cosine semantic distance (experiential and embedding). These values reflect pairwise cosine distance between different elements or chunks of a language sample. 'SemanticDistance' can process monologues (e.g., stories, ordered text), dialogues (e.g., conversation transcripts), word pairs arrayed in columns, and unordered word lists. Users specify options for how they wish to chunk distance calculations. These options include: rolling ngram-to-word distance (window of n-words to each new word), ngram-to-ngram distance (2-word chunk to the next 2-word chunk), pairwise distance between words arrayed in columns, matrix comparisons (i.e., all possible pairwise distances between words in an unordered list), turn-by-turn distance (talker to talker in a dialogue transcript). 'SemanticDistance' includes visualization options for analyzing distances as time series data and simple semantic network dynamics (e.g., clustering, undirected graph network).

Install

Health

CRAN checks
13OK
Slowest check: 6.1 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-07-04
Show 8 earlier changesHide 8 earlier changes
  • ERROR12 OK, 1 ERROR2026-07-01
  • OK13 OK2026-06-27
  • ERROR11 OK, 2 ERROR2026-06-21
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-04-11
  • ERROR13 OK, 1 ERROR2026-04-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.1.1
READMEYes · 2,466 wordsVignettesYes · 5 · dynamicNEWSYes · 33% structured · mentions 0.1.1Citation fileNoWebsiteYes · pkgdown
Help pages
18
Examples that run
no examples
Exported functions with examples
0%
Documented parameters
100%
Return-value docs
53%
Help pages citing references
0%

Downloads

5.3K
CRAN downloads in the past year
Rank #10,333 · ~15/day · ~444/mo
Daily download trend is not available in this view yet.
34830 days
99290 days
5.3K1 year
Compare downloads with other packages →
Also on60 r2u5 autocran

Repository

2Stars
2Forks
3Open issues
1Open PRs
2Releases
176Commits
2Commit identities
cosine-distancecosine-similarityembeddingslexical-semanticnlppsycholinguisticssemantics
License file reads as LGPL-3.0 · 176 commits · Last activity 2026-10-12 · 0% stars, 30d · Discussions: 2 posts
Responsiveness
How these are sampled
PRs merged (all time)
0%
Median days to close, 50 most recently updated closed issues
33
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-09-09 · 22026-07-25 · 2
PracticesBeta

9 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/reilly-conceptscognitionlab/semanticdistance on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux

Governance and community (1)
Issue templates
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-10-12 · The repository has a site deploy workflow

pkgdown site last built 2026-10-12

Reproducibility and dev environment (1)
renv
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
20 external dependencies (excludes base and recommended)

Installing SemanticDistance adds 72 packages (36 with compiled code, 85 MB of source tarballs). Heaviest: BH 14 MB, stringi 11 MB, ggplot2 6.0 MB.

Depends (1)
R >= 3.5
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (4)
Author, Maintainer since 0.1.1 (2025)
Releases (1)
  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.1Latest
    2025-09-01 · current release
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-09-01
Total releases
1 / 1 yrs
License
LGPL (>= 3) OSI
Minimum R
≥ 3.5
Download size
1.2 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("SemanticDistance")
Reilly, J., Mechtenberg, H. R., Myers, E. B., & Peelle, J. E. (2025). SemanticDistance: Compute Semantic Distance Between Text Constituents (Version 0.1.1) [Computer software]. https://doi.org/10.32614/CRAN.package.SemanticDistance

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 SemanticDistance version 0.1.1 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, 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