ComfyUI Node
Gender Tag Filter π³οΈβπ
A ComfyUI node in utils/tags with 11 inputs and 1 output.
Gender Tag Filter π³οΈβπ
- spacy_nlp
- filtered_tags
βtextβΊ
βmodestrip_female_tagsβΊ
βfilter_anatomytrueβΊ
βreplace_anatomyfalseβΊ
βfilter_presentationfalseβΊ
βswap_clothingtrueβΊ
βuse_underscorestrueβΊ
βrewrite_referencestrueβΊ
βmap_neopronounstrueβΊ
βhandle_negationstrueβΊ
Categoryutils/tags
Inputs (11)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | Tag string to filter. NL fragments are detected and preserved automatically. | |
| mode | COMBO | strip_female_tags | 'strip_female_tags' -> remove female anatomy/presentation tags 'strip_male_tags' -> remove male anatomy/presentation tags 'format_only' -> no filtering; apply use_underscores only 'off' -> pass through completely unchanged |
| filter_anatomy | BOOLEAN | true | Remove explicit anatomical tags for the unwanted gender. Also scans compound tags for anatomy root words, so huge_breasts, breast_grab, hanging_breasts etc. are all caught even if not individually listed. |
| replace_anatomy | BOOLEAN | false | Replace removed anatomy tags with gender-appropriate counterparts instead of just deleting them. e.g. large_breasts -> muscular_chest, breasts -> pecs 1girl -> 1boy, yuri -> yaoi, cameltoe -> bulge Has no effect when filter_anatomy is off. |
| filter_presentation | BOOLEAN | false | Remove gendered clothing, accessory, and makeup tags. Disable for crossdressing characters. |
| swap_clothing | BOOLEAN | true | When filter_presentation is on, replace clothing tags with gender-appropriate equivalents instead of just removing. e.g. skirt -> trousers, bikini -> swim_trunks, evening_gown -> tuxedo, bra -> removed (no equivalent) Has no effect when filter_presentation is off. |
| use_underscores | BOOLEAN | true | Output word separator style. On -> big_breasts (Danbooru/e621, most SDXL models) Off -> big breasts (some fine-tuned models) Input tags are always accepted in either style. Natural language fragments bypass this setting entirely. |
| rewrite_references | BOOLEAN | true | Swap standalone gendered noun tags. woman -> man, girl -> boy, vixen -> fox, doe -> buck etc. Covers the same word set as the NL Filter's rewrite_references for consistent behaviour across both nodes. |
| map_neopronouns | BOOLEAN | true | Map neopronoun tags to binary equivalents that image models are likely to recognise from their training data. Covers: shi/hir (Chakat/furry), they/them, xe/xem, ze/zir, ey/em (Spivak), fae/faer, ve/ver, per. When off, neopronoun tags pass through unchanged. |
| handle_negations | BOOLEAN | true | Protect tags that appear in a negated context from removal. e.g. in a mixed prompt, 'no breasts' will leave the tag untouched rather than removing it. Uses a 4-token proximity heuristic. |
| spacy_nlpopt | SPACY_NLP | Connect a SpaCy Model Loader node to enable spaCy-backed NL fragment detection. Leave disconnected to use the stop-word heuristic fallback instead. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| filtered_tags | STRING | β |