Skip to content

Text manipulation

General text transforms for reversing, reordering, wrapping, and rewording attack prompts.

Module: dreadnode.transforms.text

TransformDescription
reverseReverse text
search_replaceSearch and replace patterns
join / char_join / word_joinJoin operations
affix / prefix / suffixAdd affixes
colloquial_wordswapSwap to colloquial terms
word_removal / word_duplicationAdd or remove words
case_alternationAlternate character casing
whitespace_manipulationManipulate whitespace
sentence_reorderingReorder sentences
question_transformationTransform into questions
contextual_wrappingWrap with contextual framing
length_manipulationManipulate text length

See Transforms for how to apply transforms with any attack.