🔱 FoW - Category Prompt Splitter Light
Split one run-on prompt into up to seven slots
- Prompt Token 1
- Prompt Token 2
- Prompt Token 3
- Prompt Token 4
- Prompt Token 5
- Prompt Token 6
- Prompt Token 7
The node that unpacks your wall of text
FoW - Category Prompt Splitter Light takes one big prompt and chops it into separate pieces on common delimiters - commas, pipes, periods, and the words "and", "or", "with", "featuring" - then hands you up to seven labeled string outputs. The FoW pitch: paste a disorganized prompt in, get clean chunks out that you can route into the category nodes, one per slot.
It's part of SirWillance's FoW_Suite_LIGHT, the free Light tier of the "Force of Will" suite - a self-taught dev's two-month first project, MIT-licensed, aimed at beginners. This is a text utility, not a conditioning node: nothing gets encoded, no CLIP involved, no image-generation magic. If you were hoping it'd understand the chunks and sort them into subject vs. environment, it won't - it's a regex splitter with a nice label.
How it works
The backend is a single regex split. The delimiter set is explicit in the source:
delimiters = r"\s*(?:,|\||\.|\band\b|\bor\b|\bwith\b|\bfeaturing\b)\s*"
components = [c.strip() for c in re.split(delimiters, prompt) if c.strip()]
It strips whitespace, drops empty chunks, caps the count at your inputcount, and pads the remaining slots with empty strings so every output is always a valid string. The node prints a little log line (🔹 Splitting prompt: ... → [...]) to the ComfyUI console, which is handy the first time you use it.
The inputs that matter
- prompt (STRING, multiline) - the text to split. The only one you'll really touch.
- inputcount (INT, 1–7, default 1) - how many output slots you want. Set it to match how many chunks you expect; extra slots just come back empty.
Outputs are Prompt Token 1 through Prompt Token 7 (STRING). Wiring: each token feeds the user_input of a category node, or gets re-joined elsewhere.
Installing it
One install, whole suite:
cd ComfyUI/custom_nodes
git clone https://github.com/SirWillance/FoW_Suite_LIGHT
Restart ComfyUI, nodes appear under "🧿 FoW - Light". ComfyUI Manager has it too - search "Force of Will Suite Light". No dependencies, no model downloads.
Where people get burned
The delimiter list is the whole story, and it has real limits. It won't split on semicolons, em-dashes, or "&"; it doesn't respect parentheses, so (close-up, wide shot) becomes two tokens, not one; and it treats "and"/"with" as hard boundaries even when they're part of a phrase ("boy and his dog" becomes two chunks - one of them just "dog"). Also watch the word-splitting: the regex matches whole words (\band\b), so "and" inside a word is safe, but "featuring" as a verb will split a sentence mid-thought. For the classic comma-list prompt it works great and takes ten seconds to learn. For anything more structured, you'd be better off writing the chunks directly into the category nodes - the splitter's main value is rescue work on a prompt you didn't write and don't want to re-parse by hand.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | — | |
| inputcount | INT | 11–7 | — |
Outputs (7)
| Name | Type | Description |
|---|---|---|
| Prompt Token 1 | STRING | — |
| Prompt Token 2 | STRING | — |
| Prompt Token 3 | STRING | — |
| Prompt Token 4 | STRING | — |
| Prompt Token 5 | STRING | — |
| Prompt Token 6 | STRING | — |
| Prompt Token 7 | STRING | — |