covfefy: Covfefy any word.

Description Usage Arguments Examples

View source: R/covfefe.R

Description

We can't all be the Cheeto in Chief, so we need this function to ensure that we have the best words. This function takes a word, and performs the following algorithm thanks to this codegolf thread:

1. Include all characters up through the first vowel in the word. (co)

2. Identifies the next consonant after the first vowel in the word. (v)

3. Changes that consonant to a phonetically similar consonant. (f)

4. Finds the next vowel after that consonant. (e)

5. Combines the two, and repeats. (fefe)

6. Puts it all together: covfefe

Usage

1
covfefy(str = "coverage")

Arguments

str

Character string of word to covfefy. Defaults to "coverage".

Examples

1
2
3
4
5
covfefy("coverage")
covfefy("mexicans")
covfefy("wall")
covfefy("president")
covfefy("programming")

mkirch/covfefe documentation built on June 8, 2017, 3:09 a.m.