Skip to content

Commit f96df1d

Browse files
committed
updated unit testing
1 parent b7a7c5a commit f96df1d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ README.Rmd
1212
=======
1313
^paper$
1414
>>>>>>> origin/main
15+
^LICENSE\.md$

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Authors@R: c(
1212
person("Jonathan E.", "Peelle", role = "aut"))
1313
Maintainer: Jamie Reilly <[email protected]>
1414
Description: SemanticDistance 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).
15-
License: LGPL (>= 3) + License
15+
License: LGPL (>= 3)
1616
Encoding: UTF-8
1717
LazyData: true
1818
LazyDataCompression: xz

tests/testthat/test-CleanMonologue.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
test_that("clean_monologue_or_list produces 'word_clean' column", {
22
# Apply cleaning function (ensure Monologue_Typical exists in environment)
3-
cleaned_data <- clean_monologue_or_list(Monologue_Typical)
3+
cleaned_data <- clean_monologue_or_list(Monologue_Typical, wordcol='mytext')
44

55
# Test 1: Check column exists
66
expect_true("word_clean" %in% names(cleaned_data))

0 commit comments

Comments
 (0)