Semantic layout analysis
Compare content similarity, grouping, and reading-order suggestions.
Content grouping
Compare local heuristics with Workers AI embeddings.
The embedding metrics meet the heuristic thresholds for layout constraints.
headline has the highest anchor score from query relevance and centrality.
pro-tier has the highest bridge score.
Cluster separation exceeds 0.12. Use clusters as layout estimates.
Workers AI not used. This report uses hashed token embeddings as a deterministic baseline.
The affinity matrix shows cosine similarity between content embeddings.
Affinity matrix
Local heuristic estimates.
Semantic line breaking
Compare syntax and semantic line-breaking results without changing word order.
Width-based typesetting produces the lowest line-breaking penalty.
The morning fog lifted slowly from the harbor, revealing masts and rigging in sharp silhouette.
We had planned to sail at dawn, but the wind betrayed us.
We had planned to sail at dawn, but the wind betrayed us.
By noon the crew was restless, supplies were dwindling, and the barometer was falling.
By noon the crew was restless, supplies were dwindling, and the barometer was falling.
Someone would have to decide whether to wait or abandon the crossing entirely.
Workers AI not used. Sentence and clause cohesion are derived from hashed token embeddings.
Advanced typeset
Line penalty: 1041
Optimizes line widths and hyphenation.
Syntax-aware
Line penalty: 3621
Favors punctuation at line endings and penalizes transitional words at line starts.
Syntax and semantics
Line penalty: 6432
Favors related clauses on the same line.