Notice removed Reward existing answer by Jonathan Allan
    Bounty Ended with Dennis's answer chosen by Jonathan Allan
    Notice added Reward existing answer by Jonathan Allan
    Bounty Started worth 200 reputation by Jonathan Allan
5 added 72 characters in body
source | link

In this challenge, you must take a string matching the regex ^[a-zA-Z]+$ or whatever is reasonable (you don't have to consider uppercase or lowercase letters if you want) (you may assume the string is long enough, and has the right structure for all the operations), and output another string, produced similarly to word at the end of a recent dadaist tweet by the POTUS ("Despite the constant negative press covfefe").

How to covfefify a string:

First, get the first sound group (made up terminology).

How do you do this? Well:

  • Find the first vowel (y is also a vowel)

      v
    creation
    
  • Find the first consonant after that

        v
    creation
    
  • Remove the rest of the string

    creat
    

That is your first sound group.

Next step:

Get the last consonant of the sound group

t

and replace it with the voiced or voiceless version. To do this, find the letter in this table. Replace with the letter given (which may be the same letter)

b: p
c: g
d: t
f: v
g: k
h: h
j: j
k: g
l: l
m: m
n: n
p: b
q: q
r: r
s: z
t: d
v: f
w: w
x: x
z: s

so, we get

d

Then, take the next vowel after that consonant. You can assume that this consonant is not at the end of the string. Join these two together, then repeat it twice:

didi

Concatenate this to the first sound group:

creatdidi

You're done: the string is covfefified, and you can now output it.

Test cases:

coverage: covfefe

example: exxaxa

programming: progkaka (the a is the first vowel after the g, even though it is not immediately after)
code: codtete

president: preszizi

This is , so please make your program as short as possible!

In this challenge, you must take a string matching the regex ^[a-zA-Z]+$ or whatever is reasonable (you may assume the string is long enough, and has the right structure for all the operations), and output another string, produced similarly to word at the end of a recent dadaist tweet by the POTUS ("Despite the constant negative press covfefe").

How to covfefify a string:

First, get the first sound group (made up terminology).

How do you do this? Well:

  • Find the first vowel (y is also a vowel)

      v
    creation
    
  • Find the first consonant after that

        v
    creation
    
  • Remove the rest of the string

    creat
    

That is your first sound group.

Next step:

Get the last consonant of the sound group

t

and replace it with the voiced or voiceless version. To do this, find the letter in this table. Replace with the letter given (which may be the same letter)

b: p
c: g
d: t
f: v
g: k
h: h
j: j
k: g
l: l
m: m
n: n
p: b
q: q
r: r
s: z
t: d
v: f
w: w
x: x
z: s

so, we get

d

Then, take the next vowel after that consonant. You can assume that this consonant is not at the end of the string. Join these two together, then repeat it twice:

didi

Concatenate this to the first sound group:

creatdidi

You're done: the string is covfefified, and you can now output it.

Test cases:

coverage: covfefe

example: exxaxa

programming: progkaka (the a is the first vowel after the g, even though it is not immediately after)
code: codtete

president: preszizi

This is , so please make your program as short as possible!

In this challenge, you must take a string matching the regex ^[a-zA-Z]+$ or whatever is reasonable (you don't have to consider uppercase or lowercase letters if you want) (you may assume the string is long enough, and has the right structure for all the operations), and output another string, produced similarly to word at the end of a recent dadaist tweet by the POTUS ("Despite the constant negative press covfefe").

How to covfefify a string:

First, get the first sound group (made up terminology).

How do you do this? Well:

  • Find the first vowel (y is also a vowel)

      v
    creation
    
  • Find the first consonant after that

        v
    creation
    
  • Remove the rest of the string

    creat
    

That is your first sound group.

Next step:

Get the last consonant of the sound group

t

and replace it with the voiced or voiceless version. To do this, find the letter in this table. Replace with the letter given (which may be the same letter)

b: p
c: g
d: t
f: v
g: k
h: h
j: j
k: g
l: l
m: m
n: n
p: b
q: q
r: r
s: z
t: d
v: f
w: w
x: x
z: s

so, we get

d

Then, take the next vowel after that consonant. You can assume that this consonant is not at the end of the string. Join these two together, then repeat it twice:

didi

Concatenate this to the first sound group:

creatdidi

You're done: the string is covfefified, and you can now output it.

Test cases:

coverage: covfefe

example: exxaxa

programming: progkaka (the a is the first vowel after the g, even though it is not immediately after)
code: codtete

president: preszizi

This is , so please make your program as short as possible!

4 deleted 31 characters in body
source | link

In this challenge, you must take a string matching the regex ^[a-z]+$ or ^[AzA-Z]+$, or ^[A-Z][a-z]+$ or whatever is reasonable (you may assume the string is long enough, and has the right structure for all the operations), and output another string, produced similarly to word at the end of a recent dadaist tweet by the POTUS ("Despite the constant negative press covfefe").

How to covfefify a string:

First, get the first sound group (made up terminology).

How do you do this? Well:

  • Find the first vowel (y is also a vowel)

      v
    creation
    
  • Find the first consonant after that

        v
    creation
    
  • Remove the rest of the string

    creat
    

That is your first sound group.

Next step:

Get the last consonant of the sound group

t

and replace it with the voiced or voiceless version. To do this, find the letter in this table. Replace with the letter given (which may be the same letter)

b: p
c: g
d: t
f: v
g: k
h: h
j: j
k: g
l: l
m: m
n: n
p: b
q: q
r: r
s: z
t: d
v: f
w: w
x: x
z: s

so, we get

d

Then, take the next vowel after that consonant. You can assume that this consonant is not at the end of the string. Join these two together, then repeat it twice:

didi

Concatenate this to the first sound group:

creatdidi

You're done: the string is covfefified, and you can now output it.

Test cases:

coverage: covfefe

example: exxaxa

programming: progkaka (the a is the first vowel after the g, even though it is not immediately after)
code: codtete

president: preszizi

This is , so please make your program as short as possible!

In this challenge, you must take a string matching the regex ^[a-z]+$ or ^[A-Z]+$, or ^[A-Z][a-z]+$ or whatever is reasonable (you may assume the string is long enough, and has the right structure for all the operations), and output another string, produced similarly to word at the end of a recent dadaist tweet by the POTUS ("Despite the constant negative press covfefe").

How to covfefify a string:

First, get the first sound group (made up terminology).

How do you do this? Well:

  • Find the first vowel (y is also a vowel)

      v
    creation
    
  • Find the first consonant after that

        v
    creation
    
  • Remove the rest of the string

    creat
    

That is your first sound group.

Next step:

Get the last consonant of the sound group

t

and replace it with the voiced or voiceless version. To do this, find the letter in this table. Replace with the letter given (which may be the same letter)

b: p
c: g
d: t
f: v
g: k
h: h
j: j
k: g
l: l
m: m
n: n
p: b
q: q
r: r
s: z
t: d
v: f
w: w
x: x
z: s

so, we get

d

Then, take the next vowel after that consonant. You can assume that this consonant is not at the end of the string. Join these two together, then repeat it twice:

didi

Concatenate this to the first sound group:

creatdidi

You're done: the string is covfefified, and you can now output it.

Test cases:

coverage: covfefe

example: exxaxa

programming: progkaka (the a is the first vowel after the g, even though it is not immediately after)
code: codtete

president: preszizi

This is , so please make your program as short as possible!

In this challenge, you must take a string matching the regex ^[a-zA-Z]+$ or whatever is reasonable (you may assume the string is long enough, and has the right structure for all the operations), and output another string, produced similarly to word at the end of a recent dadaist tweet by the POTUS ("Despite the constant negative press covfefe").

How to covfefify a string:

First, get the first sound group (made up terminology).

How do you do this? Well:

  • Find the first vowel (y is also a vowel)

      v
    creation
    
  • Find the first consonant after that

        v
    creation
    
  • Remove the rest of the string

    creat
    

That is your first sound group.

Next step:

Get the last consonant of the sound group

t

and replace it with the voiced or voiceless version. To do this, find the letter in this table. Replace with the letter given (which may be the same letter)

b: p
c: g
d: t
f: v
g: k
h: h
j: j
k: g
l: l
m: m
n: n
p: b
q: q
r: r
s: z
t: d
v: f
w: w
x: x
z: s

so, we get

d

Then, take the next vowel after that consonant. You can assume that this consonant is not at the end of the string. Join these two together, then repeat it twice:

didi

Concatenate this to the first sound group:

creatdidi

You're done: the string is covfefified, and you can now output it.

Test cases:

coverage: covfefe

example: exxaxa

programming: progkaka (the a is the first vowel after the g, even though it is not immediately after)
code: codtete

president: preszizi

This is , so please make your program as short as possible!

3 Please format your question properly @DestructibleMelon
source | link

In this challenge, you must take a string matching the regex ^[a-z]+$ or ^[A-Z]+$, or ^[A-Z][a-z]+$ or whatever is reasonable, (you may assume the string is long enough, and has the right structure for all the operations), and output another string, produced similarly to word at the end of a recent dadaist tweet by the POTUS ("Despite the constant negative press covfefe""Despite the constant negative press covfefe").

howHow to covfefify a string:

firstFirst, get the first sound group (made up terminology): how to do this? well:.

find the first vowel (including y)How do you do this? Well:

  v
creation

find the first consonant after that

    v
creation

remove the rest of the string

creat
  • Find the first vowel (y is also a vowel)

      v
    creation
    
  • Find the first consonant after that

        v
    creation
    
  • Remove the rest of the string

    creat
    

That is your first sound group.

nextNext step:

getGet the last consonant of the sound group

t

and replace it with the voiced or voiceless version. toTo do this, find the letter in this table. replaceReplace with the letter given (which may be the same letter)

b: p
c: g
d: t
f: v
g: k
h: h
j: j
k: g
l: l
m: m
n: n
p: b
q: q
r: r
s: z
t: d
v: f
w: w
x: x
z: s

so, we get

d

thenThen, take the next vowel after that consonant. youYou can assume, that this consonant is not at the end of the string. Join these two together, then repeat themit twice:

didi

concatenateConcatenate this to the first sound group:

creatdidi

You're done: the string is covfefified, and you can now output it.

Test cases:

coverage: covfefe

example: exxaxa

programming: progkaka (the a is the first vowel after the g, even though it is not immediately after)
code: codtete

president: preszizi

This is , so please make your program as short as possible!

In this challenge, you must take a string matching the regex ^[a-z]+$ or ^[A-Z]+$, or ^[A-Z][a-z]+$ or whatever is reasonable, (you may assume the string is long enough, and has the right structure for all the operations), and output another string, produced similarly to word at the end of a recent dadaist tweet by the POTUS ("Despite the constant negative press covfefe")

how to covfefify a string:

first, get the first sound group (made up terminology): how to do this? well:

find the first vowel (including y):

  v
creation

find the first consonant after that

    v
creation

remove the rest of the string

creat

first sound group

next step

get the last consonant of the sound group

t

and replace it with the voiced or voiceless version. to do this, find the letter in this table. replace with the letter given (which may be the same letter)

b: p
c: g
d: t
f: v
g: k
h: h
j: j
k: g
l: l
m: m
n: n
p: b
q: q
r: r
s: z
t: d
v: f
w: w
x: x
z: s

so, we get

d

then, take the next vowel after that consonant. you can assume, that this consonant is not at the end of the string. Join these two together, then repeat them twice

didi

concatenate this to the first sound group:

creatdidi

You're done: the string is covfefified, and you can now output it.

Test cases:

coverage: covfefe

example: exxaxa

programming: progkaka (the a is the first vowel after the g, even though it is not immediately after)
code: codtete

president: preszizi

This is so please make your program as short as possible

In this challenge, you must take a string matching the regex ^[a-z]+$ or ^[A-Z]+$, or ^[A-Z][a-z]+$ or whatever is reasonable (you may assume the string is long enough, and has the right structure for all the operations), and output another string, produced similarly to word at the end of a recent dadaist tweet by the POTUS ("Despite the constant negative press covfefe").

How to covfefify a string:

First, get the first sound group (made up terminology).

How do you do this? Well:

  • Find the first vowel (y is also a vowel)

      v
    creation
    
  • Find the first consonant after that

        v
    creation
    
  • Remove the rest of the string

    creat
    

That is your first sound group.

Next step:

Get the last consonant of the sound group

t

and replace it with the voiced or voiceless version. To do this, find the letter in this table. Replace with the letter given (which may be the same letter)

b: p
c: g
d: t
f: v
g: k
h: h
j: j
k: g
l: l
m: m
n: n
p: b
q: q
r: r
s: z
t: d
v: f
w: w
x: x
z: s

so, we get

d

Then, take the next vowel after that consonant. You can assume that this consonant is not at the end of the string. Join these two together, then repeat it twice:

didi

Concatenate this to the first sound group:

creatdidi

You're done: the string is covfefified, and you can now output it.

Test cases:

coverage: covfefe

example: exxaxa

programming: progkaka (the a is the first vowel after the g, even though it is not immediately after)
code: codtete

president: preszizi

This is , so please make your program as short as possible!

    Tweeted twitter.com/StackCodeGolf/status/869853766530543616
2 added 4 characters in body
source | link
1
source | link