fork download
  1. import re
  2.  
  3. def spoonify(text):
  4. return re.sub('([AEIOUaeiouÄÖÜäöü]+)', r'\1lew\1', text)
  5.  
  6. print(spoonify("Dies ist ein Test in Löffelsprache."))
Success #stdin #stdout 0.02s 28384KB
stdin
Standard input is empty
stdout
Dielewies ilewist eilewein Telewest ilewin Lölewöffelewelspralewachelewe.