get_homoforms: Get homophones

View source: R/competitors.R

get_homoformsR Documentation

Get homophones

Description

Homophones are items which sound similar to the target

Usage

get_homoforms(target, lexicon, sep = " ", form = FALSE, count = FALSE)

Arguments

target

Character string containing a target word

lexicon

Character vector containing the lexical database

sep

Separator in target and lexicon

form

Whether to return words in lexicon

count

Whether to return count of words

Value

the indexes of the competitors in the lexical database

Examples

get_homoforms("AA R K", c("AA R K", "AA R", "B AA B"))

LexFindR documentation built on June 22, 2024, 9:47 a.m.