Skip to content

Commit

Permalink
Improved description of parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
waltervanheuven committed Jun 18, 2023
1 parent ad43c82 commit eb5d776
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions R/strsim.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ nd <- function(target_str, dt, show=FALSE) {
#'
#' neighborhood_density()` calculates the neighbourhood density of a list of words.
#'
#' @param targets_spellings target strings
#' @param all_words all words
#' @param targets_spellings vector of target strings
#' @param all_words vector with words
#' @param show show neighbours
#' @param pb show progress bar
#' @param parallel parallel processing
Expand Down Expand Up @@ -150,9 +150,9 @@ nf <- function(target, dt_corpus, show=FALSE) {
#' `neighborhood_frequency()` calculates the neighbourhood frequency
#' of a list of words based on the words and frequencies provided.
#'
#' @param targets_spellings target strings
#' @param all_words all words
#' @param all_frequencies frequencies of all words
#' @param targets_spellings vector of target strings
#' @param all_words vector of words
#' @param all_frequencies vector of word frequencies
#' @param show show neighbours
#' @param pb show progress bar
#' @param parallel parallel processing
Expand Down Expand Up @@ -206,7 +206,7 @@ neighborhood_frequency <- function(targets_spellings, all_words,
#' \href{http://link.springer.com/article/10.3758/PBR.15.5.971}{Yarkoni et al. (2008)}.
#'
#' @param target_word target word
#' @param words list of words
#' @param words vector of words
#' @param old_n number of words to calculate old20, default is 20
#' @param show show the Levenshtein distance of each of the n_old (20) words that have
#' the lowest Levenshtein distance with the target word.
Expand Down Expand Up @@ -258,8 +258,8 @@ old <- function(target_word, words, old_n = 20, show = FALSE) {
#' The OLD20 definition was proposed by
#' \href{http://link.springer.com/article/10.3758/PBR.15.5.971}{Yarkoni et al. (2008)}.
#'
#' @param target_words list of target words
#' @param all_words list of words
#' @param target_words vector of target words
#' @param all_words vector of words
#' @param old_n max number of most similar words to calculate OLD20
#' @param pb show progress bar
#' @param parallel parallel processing
Expand Down
4 changes: 2 additions & 2 deletions man/neighborhood_density.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/neighborhood_frequency.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/old.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/old20.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eb5d776

Please sign in to comment.