UbbiDubbi ← {
⍝ Monadic function expecting a character vector and returning a character vector.
⍝ Translates an English sentence into Ubbi Dubbi.
⍝ e.g. 'Hello' gives 'Hubellubo'
∊ ('ub'∘,)¨@(∊∘'aeiouAEIOU') ⍵
}
Rovarspraket ← {
⍝ Monadic function expecting a character vector and returning a character vector.
⍝ Encodes an English sentence with the Rövarspraket Swedish game.
⍝ e.g. 'hello' gives 'hohelollolo'
consonants ← ⎕UCS(32∘+,⊢)⎕UCS ⎕A~'AEIOU'
∊ (⊢,'o'∘,)¨@(∊∘consonants) ⍵