Learn R Programming

LexFindR (version 1.1.0)

get_homoforms: Get homophones

Description

Homophones are items which sound similar to the target

Usage

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

Value

the indexes of the competitors in the lexical database

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

Examples

Run this code
get_homoforms("AA R K", c("AA R K", "AA R", "B AA B"))

Run the code above in your browser using DataLab