Visit ComfyUI Online for ready-to-use ComfyUI environment
Modify text based on gender preferences for personalized outputs in creative projects.
The ModifyTextGender
node is designed to modify a given text based on specified gender preferences. This node is particularly useful for AI artists who want to tailor text prompts to reflect gender-specific language. By leveraging predefined gender mappings, the node can swap gendered words and add gender-specific prefixes to the text, ensuring that the output aligns with the desired gender context. This functionality is beneficial for creating more personalized and contextually appropriate text outputs in various creative and narrative-driven projects.
This parameter allows you to specify the primary gender to be used for modifying the text. The options are ""
(no preference), "M"
(male), and "F"
(female). If a gender is specified here, it takes precedence over the gender_alternative
parameter. This parameter helps in determining the gender context for the text modification. The default value is ""
.
This is the main text input that you want to modify based on the gender context. It is a required parameter and must be provided as a string. The text will be processed to swap gender-specific words and add gender-specific prefixes as needed.
This parameter defines the weight of the gender-specific prefixes added to the text. It is a floating-point value with a default of 1.0
, a minimum of 0
, and a maximum of 3
, with increments of 0.1
. Adjusting this weight can influence the prominence of the gender-specific prefixes in the modified text.
This optional parameter allows you to specify an alternative gender to be used if gender_prior
is not set. It must be provided as a string. This parameter ensures that a gender context is available even if the primary gender is not specified.
This boolean parameter determines whether the text modification is enabled or not. If set to True
, the text will be modified based on the gender context. If set to False
, the text will remain unchanged. The default value is True
.
This hidden parameter is an integer that can be used to specify the age context for the text modification. It has a default value of -1
, a minimum of -1
, and a maximum of 120
, with increments of 1
. Although it is not directly used in the gender modification process, it can be included for future extensions or additional context.
The output is a modified version of the input text, adjusted based on the specified gender context. The text will have gender-specific words swapped and prefixes added according to the provided parameters. This ensures that the output text aligns with the desired gender context, making it more personalized and contextually appropriate.
gender_prior
parameter to "M"
or "F"
.gender_prior_weight
parameter to control the prominence of gender-specific prefixes in the modified text. A higher weight will make the prefixes more noticeable.gender_alternative
parameter. This ensures that the text is always modified based on a gender context, even if the primary gender is not specified.enabled
parameter set to True
to activate the text modification. If you want to keep the text unchanged, set this parameter to False
.gender_prior
nor gender_alternative
is provided, leaving the node without a gender context to modify the text.gender_prior
or gender_alternative
is set to "M"
or "F"
to provide a valid gender context for the text modification.gender_prior
or gender_alternative
parameters.""
, "M"
, or "F"
. Double-check the input values to ensure they are correct.text
parameter is not provided or is set to None
.text
parameter is provided with a valid string input. This is a required parameter and must not be left empty.© Copyright 2024 RunComfy. All Rights Reserved.