Skip to main content
deleted 660 characters in body
Source Link
Unrelated String
  • 23.9k
  • 3
  • 37
  • 61

Jelly, 1616 12 bytes

e€ØcT⁸ṫ“shm”;ⱮḢȯœlØḄṭ⁸¹?“shm 

Try it online!Try it online!

-4 thanks to ovs remembering there's a strip builtin

 ⁸ṫ Remove a number of letters from the start of the word equal to T each truthy index of € for each letter, e Øc œlØḄ isStrip itall aleading vowel?consonants.    “shm”;Ɱ “shm Prepend "shm" to each,   ¹? take the first (or 0 if empty),  there's anything left, otherwise   ȯ and replace a falsy result withgive the original word. 

Jelly, 16 bytes

e€Øco\x@ṭ⁸¹?“shm 

Try it online!

Jelly, 16 bytes

e€ØcT⁸ṫ“shm”;ⱮḢȯ 

Try it online!

 ⁸ṫ Remove a number of letters from the start of the word equal to T each truthy index of € for each letter, e Øc  is it a vowel?   “shm”;Ɱ Prepend "shm" to each,    take the first (or 0 if empty),  ȯ and replace a falsy result with the original word. 

Jelly, 16 bytes

e€Øco\x@ṭ⁸¹?“shm 

Try it online!

Jelly, 16 12 bytes

œlØḄṭ⁸¹?“shm 

Try it online!

-4 thanks to ovs remembering there's a strip builtin

œlØḄ Strip all leading consonants.  “shm Prepend "shm" ¹? if there's anything left, otherwise   give the original word. 
added 343 characters in body
Source Link
Unrelated String
  • 23.9k
  • 3
  • 37
  • 61

Jelly, 16 bytes

e€ØcT⁸ṫ“shm”;ⱮḢȯ 

Try it online!

 ⁸ṫ Remove a number of letters from the start of the word equal to T each truthy index of € for each letter, e Øc is it a vowel? “shm”;Ɱ Prepend "shm" to each, Ḣ take the first (or 0 if empty), ȯ and replace a falsy result with the original word. 

Jelly, 16 bytes

e€Øco\x@ṭ⁸¹?“shm 

Try it online!

Jelly, 16 bytes

e€ØcT⁸ṫ“shm”;ⱮḢȯ 

Try it online!

 ⁸ṫ Remove a number of letters from the start of the word equal to T each truthy index of € for each letter, e Øc is it a vowel? “shm”;Ɱ Prepend "shm" to each, Ḣ take the first (or 0 if empty), ȯ and replace a falsy result with the original word. 

Jelly, 16 bytes

e€ØcT⁸ṫ“shm”;ⱮḢȯ 

Try it online!

 ⁸ṫ Remove a number of letters from the start of the word equal to T each truthy index of € for each letter, e Øc is it a vowel? “shm”;Ɱ Prepend "shm" to each, Ḣ take the first (or 0 if empty), ȯ and replace a falsy result with the original word. 

Jelly, 16 bytes

e€Øco\x@ṭ⁸¹?“shm 

Try it online!

added 382 characters in body
Source Link
Unrelated String
  • 23.9k
  • 3
  • 37
  • 61

Jelly, 16 bytes

e€ØcT⁸ṫ“shm”;ⱮḢȯ 

Try it online!

 ⁸ṫ Remove a number of letters from the start of the word equal to T each truthy index of € for each letter, e Øc is it a vowel? “shm”;Ɱ Prepend "shm" to each, Ḣ take the first (or 0 if empty), ȯ and replace a falsy result with the original word. 

Jelly, 16 bytes

e€ØcT⁸ṫ“shm”;ⱮḢȯ 

Try it online!

Jelly, 16 bytes

e€ØcT⁸ṫ“shm”;ⱮḢȯ 

Try it online!

 ⁸ṫ Remove a number of letters from the start of the word equal to T each truthy index of € for each letter, e Øc is it a vowel? “shm”;Ɱ Prepend "shm" to each, Ḣ take the first (or 0 if empty), ȯ and replace a falsy result with the original word. 
Source Link
Unrelated String
  • 23.9k
  • 3
  • 37
  • 61
Loading