Complexity and universality in the long-range order of words