Compute Semantic Distance Between Text Constituents
Overview
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
- 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
Documentation
- 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
Repository
- 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
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
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.
The R CMD check workflow runs on Linux
GitHub Pages site last deployed 2026-10-12 · The repository has a site deploy workflow
pkgdown site last built 2026-10-12
Show all practicesHide 1 practice
Dependencies
Code & Tests
People & History
- RR 4.6.0 released · 2026-04-24
- 0.1.1Latest2025-09-01 · current release
- RR 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")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.
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.