How the Word Cloud Generator Works
AnyTool Word Cloud Generator builds the cloud entirely in the browser. It tokenises the text with a Unicode-aware regular expression, counts word frequencies, applies filters (case folding, stop-word removal, minimum frequency and length, and a maximum word cap), then maps each frequency to a font size using a square-root, area-proportional scale. Words are placed largest-first along a hand-rolled Archimedean or rectangular spiral, testing each candidate position against the bounding boxes of already-placed words so nothing overlaps.
- Frequency counts reuse the same Unicode tokenizer as the Word Counter
- Font size scales with the square root of frequency (area-proportional)
- Placement uses an Archimedean or rectangular spiral with bounding-box collision tests
- No d3-cloud and no external CDN — the layout is hand-rolled and runs locally
- A seeded random generator makes every re-roll reproducible from the same seed
