More serious attempts to automatically produce nonsense stem from Claude Shannon's seminal paper "A Mathematical Theory of Communication" from 1948 where progressively more convincing nonsense is generated first by choosing letters and spaces randomly, then according to the frequency with which each character appears in some sample of text, then respecting the likelihood that the chosen letter appears after the preceding one or two in the sample text, and then applying similar techniques to whole words.