get_neighbors: Outputs a list of 1-edit distance neighbors of a word

View source: R/get_neighbors.R

get_neighborsR Documentation

Outputs a list of 1-edit distance neighbors of a word

Description

Outputs a list of 1-edit distance neighbors of a word

Usage

get_neighbors(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 list of its neighbors (if any).

Examples

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


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