Built-in Transforms

Malarky ships with 10 output transforms. All are deterministic and safe to chain.


pigLatin

Classic Pig Latin. Consonant clusters at the start of a word move to the end, followed by “ay”. Words starting with vowels get “yay” appended.

malarky sentence --seed 42 --transform pigLatin
# "Enerallygay, ethay angechay alledcay."
generator.sentence({
  outputTransforms: { enabled: true, pipeline: [{ id: 'pigLatin' }] },
});

ubbiDubbi

Ubbi Dubbi language game. Inserts “ub” before each vowel sound in a word.

malarky sentence --seed 42 --transform ubbiDubbi
generator.sentence({
  outputTransforms: { enabled: true, pipeline: [{ id: 'ubbiDubbi' }] },
});

leet

Leetspeak character substitution. Replaces letters with numbers and symbols (a->4, e->3, i->1, o->0, s->5, t->7, etc.).

malarky sentence --seed 42 --transform leet
generator.sentence({
  outputTransforms: { enabled: true, pipeline: [{ id: 'leet' }] },
});

uwu

Cute speak. Replaces r and l with w, inserts “nya” randomly, and adds cute suffixes.

malarky sentence --seed 42 --transform uwu
generator.sentence({
  outputTransforms: { enabled: true, pipeline: [{ id: 'uwu' }] },
});

pirate

Pirate speak. Substitutes common words and phrases with pirate equivalents (you -> ye, the -> th’, hello -> ahoy, etc.).

malarky sentence --seed 42 --transform pirate
generator.sentence({
  outputTransforms: { enabled: true, pipeline: [{ id: 'pirate' }] },
});

redact

Redaction. Masks words with bracketed blocks, producing text that looks like a redacted document.

malarky sentence --seed 42 --transform redact
generator.sentence({
  outputTransforms: { enabled: true, pipeline: [{ id: 'redact' }] },
});

emoji

Emoji replacement. Replaces certain words with emoji equivalents where possible.

malarky sentence --seed 42 --transform emoji
generator.sentence({
  outputTransforms: { enabled: true, pipeline: [{ id: 'emoji' }] },
});

mockCase

Mock case. Alternates between upper and lower case characters: rAnDoM CaSe aLtErNaTiOn.

malarky sentence --seed 42 --transform mockCase
generator.sentence({
  outputTransforms: { enabled: true, pipeline: [{ id: 'mockCase' }] },
});

reverseWords

Reverse word order within sentences. Punctuation stays in place.

malarky sentence --seed 42 --transform reverseWords
generator.sentence({
  outputTransforms: { enabled: true, pipeline: [{ id: 'reverseWords' }] },
});

bizJargon

Business jargon. Applies business-speak patterns and substitutions to make text sound even more corporate.

malarky sentence --seed 42 --transform bizJargon
generator.sentence({
  outputTransforms: { enabled: true, pipeline: [{ id: 'bizJargon' }] },
});

Chaining transforms

Combine multiple transforms for creative effects:

# Pirate leet speak
malarky sentence --seed 42 --transform pirate,leet

# Business jargon in Pig Latin
malarky sentence --seed 42 --transform bizJargon,pigLatin

# Mock case pirate
malarky sentence --seed 42 -x pirate -x mockCase

See Chaining & Configuration for pipeline ordering, auto-ordering, and protection rules.


Back to top

Malarky © 2026. Distributed under the MIT License.

This site uses Just the Docs, a documentation theme for Jekyll.