get_degree: Calculates the degree or neighborhood density of a word based...

View source: R/get_degree.R

get_degreeR Documentation

Calculates the degree or neighborhood density of a word based on Levenshtein edit distance of 1

Description

Calculates the degree or neighborhood density of a word based on Levenshtein edit distance of 1

Usage

get_degree(stimuli, database)

Arguments

stimuli

A character vector containing words or nonwords.

database

A dataframe that must contain a Phono column that contains phonological transcriptions.

Value

A dataframe with stimuli and corresponding degree.

Examples

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


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