get_nfreq: Calculates the neighborhood frequency of a word based on...

View source: R/get_nfreq.R

get_nfreqR Documentation

Calculates the neighborhood frequency of a word based on Levenshtein edit distance of 1

Description

Calculates the neighborhood frequency of a word based on Levenshtein edit distance of 1

Usage

get_nfreq(stimuli, database)

Arguments

stimuli

A character vector containing words or nonwords to calculate the degree of.

database

A dataframe that must contain a Phono column that contains phonological transcriptions and a Frequency column with log frequencies.

Value

A dataframe with stimuli and corresponding neighborhood frequency (average frequency of its neighbors).

Examples

# load a database first
# get_nfreq(stimuli = c('xbet', 'gEt', 'hWs', 'xgEnst'), database = data)


csqsiew/NFreq documentation built on Oct. 5, 2022, 9:03 p.m.