wordcount.wl); the resulting frequency-sorted list was tested for
semantic structure beyond what frequency ranking alone would predict.
The primary test (semantic-embed-test.py) builds co-occurrence vectors from the raw
corpus (window=5, vocab ≥10 occurrences) and measures mean cosine similarity between
frequency-adjacent word pairs vs. 200 shuffled baselines. Result: Z=27.89, p=1.74×10−171,
confirming that words adjacent in the frequency list are semantically closer than chance.
The effect concentrates in mid-frequency and rare words (Z=10.25 for ranks 5000–10000),
not in common words where high co-occurrence is trivially expected.
frequency-coherence/ (statistical tests),
scripts/gen-appendix.py (this page).