Typed page and rank towers
Word-length histogram

Zipf's Law from Random Typing: Rank-Frequency Towers and Word Lengths (2D)

A monkey hits m letter keys and the space bar at random. Words are the letter runs between spaces, and their rank-frequency plot is a straight Zipf line with exponent alpha = ln(m/(1-q))/ln m, close to 1. Watch a Blender typewriter produce thousands of words, towers at ranks 1, 2, 4, 8 ... grow, vocabulary follow Heaps' law and word lengths follow q(1-q)^(L-1). Change keys, space probability, corpus size and the seed, and compare the exact theory with the typed text.

Made with 🟠 Blender