Text manipulation
General text transforms for reversing, reordering, wrapping, and rewording attack prompts.
Module: dreadnode.transforms.text
| Transform | Description |
|---|---|
reverse | Reverse text |
search_replace | Search and replace patterns |
join / char_join / word_join | Join operations |
affix / prefix / suffix | Add affixes |
colloquial_wordswap | Swap to colloquial terms |
word_removal / word_duplication | Add or remove words |
case_alternation | Alternate character casing |
whitespace_manipulation | Manipulate whitespace |
sentence_reordering | Reorder sentences |
question_transformation | Transform into questions |
contextual_wrapping | Wrap with contextual framing |
length_manipulation | Manipulate text length |
See Transforms for how to apply transforms with any attack.