Nodes/ComfyUI-Minitools/Sensitive Word Filter 👻
ComfyUI Node

Sensitive Word Filter 👻

This node filters sensitive words from the given prompt and replaces them with random words from a provided list. Inputs: - `prompt`: The text prompt in which you want to filter words. - `sensitive_words`: A comma-separated list of sensitive words to be filtered. - `replacement_word_list`: A comma-separated list of words to replace the sensitive words. Each sensitive word is replaced with a random word from this list. Example: If the prompt is "I have a secret and it's cat", sensitive words are "cat,secret", and replacement words are "dog,fish", the output might be "I have a fish and it's dog".

By lepiai·Created 2 years ago·Updated a day ago· 8
Sensitive Word Filter 👻
    • STRING
    prompt
    sensitive_words
    replacement_word_listword1,word2,word3
    CategoryMiniTools

    Inputs (3)

    NameTypeDefaultDescription
    promptSTRING
    sensitive_wordsSTRING
    replacement_word_listSTRINGword1,word2,word3

    Outputs (1)

    NameTypeDescription
    STRINGSTRING