Pig Latin Translator

A function to translate text into pig latin.

Author: Raevnos
Category: Functions
Commands: @create, @lock, @set.
Functions: map(), num(), regediti(), u().

Instructions

Copy and paste the below code into a compatible MUSH or MUX.

MUSHCode for Pig Latin Translator

@create Pig Latin Translator
@lock Pig Latin Translator==me
@set Pig Latin Translator = VISUAL
@set Pig Latin Translator = !NO_COMMAND
&DESCRIBE Pig Latin Translator=Try think u([num(me)]/piglatinize, this is a test)
@set Pig Latin Translator/DESCRIBE=no_command visual public nearby
&PIGLATINIZE Pig Latin Translator=map(word, %0)
&WORD Pig Latin Translator=regediti(%0, ^(\[^aeiou\]*)(.+)$, $2-$1ay)

look Pig Latin Translator