get_cohorts: Get cohort competitors

Description Usage Arguments Value Examples

View source: R/competitors.R

Description

Cohorts overlap in onset phoneme(s).

Usage

1
2
3
4
5
6
7
8
get_cohorts(
  target,
  lexicon,
  sep = " ",
  form = FALSE,
  count = FALSE,
  overlap = 2
)

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

overlap

(get_cohorts only) Integer specifying the number of onset phonemes to overlap for matching with the target word

Value

the indexes of the competitors in the lexical database

Examples

1
get_cohorts("AA R K", c("AA R K", "AA R T", "B AA B"))

LexFindR documentation built on Oct. 29, 2021, 9:07 a.m.