Ubbi Dubbi (also Pig Greek or Double Dutch in English, or Ububbubi Dububbubi in Ubbi Dubbi) is a language game that is popular with children. They use it as a secret language or as a joke. The language became popular thanks to the long-term television program ZOOM1 on PBS2 and one of its variants was used by Bill Cosby3 in his dentist sketch and for the voice-over he did for Mushmouth from the series Fat Albert and the Cosby Kids4. However, the language goes back to the starting days of the American English in the 17th century.

The principle of Ubbi Dubbi is simple. English words are transformed by having a series of vowels preceded by ub. If the first vowel of the sequence is an uppercase letter, that vowel is preceded by Ub.

Assignment

Example

>>> text2ubbi('speak')
'spubeak'
>>> text2ubbi('Hello')
'Hubellubo'
>>> text2ubbi('Extra')
'Ubextruba'
>>> text2ubbi('Mississippi')
'Mubissubissubippubi'
>>> text2ubbi('zoom')
'zuboom'
>>> text2ubbi('Ubbi Dubbi')
'Ububbubi Dububbubi'
>>> text2ubbi('Hi, how are you?')
'Hubi, hubow ubarube yubou?'

>>> ubbi2text('spubeak')
'speak'
>>> ubbi2text('Hubellubo')
'Hello'
>>> ubbi2text('Ubextruba')
'Extra'
>>> ubbi2text('Mubissubissubippubi')
'Mississippi'
>>> ubbi2text('zuboom')
'zoom'
>>> ubbi2text('Ububbubi Dububbubi')
'Ubbi Dubbi'
>>> ubbi2text('Hubi, hubow ubarube yubou?')
'Hi, how are you?'