How does the stanza detection algorithm work?
Our software uses a technique called Visual Gap Analysis. It measures the vertical distance between every pair of consecutive text lines on the page and calculates the median gap. Any gap that is 1.5 times larger than the median is identified as a stanza break. Lines are then grouped into Stanza objects accordingly. This method is based purely on the visual geometry of the rendered page.
Is the algorithm font-agnostic?
Yes. Because our algorithm works by analyzing the geometry of the page — the actual pixel distances between rendered lines — it is not dependent on the font, font size, or typesetting style of your manuscript. It will work correctly regardless of whether your manuscript was typeset in Times New Roman, Garamond, or any other typeface.
How does the software handle page numbers?
Our software includes a dedicated page number filter. It identifies standalone, digit-only lines (up to three digits) that appear in the first three or last two positions of a page's line list and removes them from the analysis. This prevents page numbers from being mistakenly included in a stanza in the generated output.
How accurate is the stanza detection?
The algorithm is very accurate for the vast majority of manuscripts, particularly those with clear visual spacing between stanzas. It is specifically designed to handle the wide range of typesetting styles found in published poetry. However, in cases of highly unusual or experimental formatting — such as poems with very irregular spacing — some manual adjustment may be required in the generated Word document.
What happens if my poem has no stanza breaks?
If a poem has no stanza breaks — that is, all lines are spaced consistently — the algorithm will correctly identify the entire poem as a single stanza. The output will reflect this, with the poem presented as a continuous block of text in all output formats.