rhyme_detect: Determine if two words rhyme

Description Usage Arguments Value Examples

View source: R/detect-rhyme.R

Description

A function to test whether words rhyme with each other. All words in x will be compared to all words in y.

Usage

1
2
rhyme_detect(x, y, stress_match = TRUE, self_rhyme = FALSE,
  vowel_only = FALSE)

Arguments

x

character string or character vector of words to test against y

y

character string or character vector of words to test against x

stress_match

should the stress value of the vowel phoneme match in rhymes?

self_rhyme

does a word rhyme with itself?

vowel_only

should only the final vowel phoneme be considered when identifying rhymes?

Value

A tibble with 3 columns:

Examples

1
2
3
4
rhyme_detect("bake", "cake")
rhyme_detect("bake", c("cake", "lake", "forest"))
rhyme_detect("orange", "sponge", stress_match = TRUE)
rhyme_detect("orange", "sponge", stress_match = FALSE)

wjakethompson/rhyme documentation built on Sept. 28, 2017, 1:16 a.m.