ComfyUI > Nodes > DJZ-Nodes > Prompt Dupe-Remover

ComfyUI Node: Prompt Dupe-Remover

Class Name

PromptDupeRemover

Category
Custom-Nodes
Author
DriftJohnson (Account age: 4052days)
Extension
DJZ-Nodes
Latest Updated
2025-04-25
Github Stars
0.04K

How to Install DJZ-Nodes

Install this extension via the ComfyUI Manager by searching for DJZ-Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter DJZ-Nodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Prompt Dupe-Remover Description

Enhance text prompts by removing duplicate words for AI artists, improving clarity and impact.

Prompt Dupe-Remover:

The PromptDupeRemover node is designed to streamline and enhance your text prompts by eliminating duplicate words, ensuring clarity and conciseness in your creative projects. This node is particularly beneficial for AI artists who work with text-based inputs, as it helps maintain the uniqueness and effectiveness of prompts by removing redundant words. By focusing on the core message, the node aids in producing more impactful and precise outputs. The primary function of the PromptDupeRemover is to scan through the input text, identify duplicate words, and remove them while preserving the original punctuation. This process not only refines the text but also enhances the overall quality of the input, making it more suitable for various creative applications.

Prompt Dupe-Remover Input Parameters:

text

The text parameter is the main input for the node, where you provide the string of text that you want to process. This parameter accepts multiline strings, allowing you to input extensive text blocks. The function of this parameter is to serve as the source material from which duplicate words will be identified and removed. There are no specific minimum or maximum values for this parameter, but it should be a valid string input.

preserve_case

The preserve_case parameter is a boolean option that determines whether the original casing of the words should be maintained during the duplicate removal process. If set to True, the node will preserve the original case of the words, ensuring that the text's stylistic elements remain intact. If set to False, the node will convert all words to lowercase before processing, which can be useful for ensuring uniformity in the text. The default value for this parameter is True, allowing you to maintain the original case unless specified otherwise.

Prompt Dupe-Remover Output Parameters:

STRING

The output of the PromptDupeRemover node is a single string, which is the cleaned version of the input text with all duplicate words removed. This output is crucial as it provides a refined and concise version of the original text, free from redundancy. The cleaned text maintains the original punctuation and spacing, ensuring that the output is not only concise but also retains the intended structure and readability of the input.

Prompt Dupe-Remover Usage Tips:

  • To maintain the stylistic elements of your text, ensure that the preserve_case parameter is set to True, especially when working with text that includes proper nouns or specific formatting.
  • Use the node to preprocess text prompts before feeding them into AI models, as this can enhance the model's ability to generate more coherent and relevant outputs by focusing on unique content.

Prompt Dupe-Remover Common Errors and Solutions:

Invalid input type

  • Explanation: This error occurs when the input provided to the text parameter is not a valid string.
  • Solution: Ensure that the input is a properly formatted string. If you are using variables or data from other nodes, verify that they output a string type.

Case preservation not working

  • Explanation: If the preserve_case parameter is not functioning as expected, it might be due to incorrect parameter settings.
  • Solution: Double-check that the preserve_case parameter is set to True if you wish to maintain the original case of the text. If issues persist, ensure that the node is correctly configured and that there are no conflicting settings in your workflow.

Prompt Dupe-Remover Related Nodes

Go back to the extension to check out more related nodes.
DJZ-Nodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.