syllable_swap: Swap syllables between two words

View source: R/syllable.R

syllable_swapR Documentation

Swap syllables between two words

Description

Swap syllables between two words

Usage

syllable_swap(word1, word2, position = 1L)

Arguments

word1

Character. First word

word2

Character. Second word

position

Integer. Which syllable to swap (1-indexed)

Value

Character vector of length 2 with swapped words

Examples

syllable_swap("coverage", "president", 1)

covfefe documentation built on Jan. 26, 2026, 5:08 p.m.