get_cohorts | R Documentation |
Cohorts overlap in onset phoneme(s).
get_cohorts(
target,
lexicon,
sep = " ",
form = FALSE,
count = FALSE,
overlap = 2
)
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 |
overlap |
(get_cohorts only) Integer specifying the number of onset phonemes to overlap for matching with the target word |
the indexes of the competitors in the lexical database
get_cohorts("AA R K", c("AA R K", "AA R T", "B AA B"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.