All you need to do is press the space bar or click “WORD” and you will get an English nonword or sentence. You can change the variables at the top to set parameters for the words made. Press w to see all of the words you have made. Enjoy.
To make the words, it uses letter frequencies in English (from a corpus, not a dictionary) for the first letter of a word. It also uses 2-grams, strings of two letters, to come up with the next letter in a word. I have made 2-gram lists for any position in a word and for the last letter in a word. Everything is picked by choosing a random item in a list (or randowm letter in a string), but there are more of one letter than another in a list, there is not an equal probability of each letter. In order to eliminate letter combinations that are hard to pronounce and that don’t happen in English, every time a new letter is picked, it checks if the last three letters (including the picked one) are included in a list of 3-grams. If it is, the letter is used; if it isn’t, it picks a different letter. That was a long description of how it works. Sources I used: •http://norvig.com/mayzner.html •http://homepages.math.uic.edu/~leon/mcs425-s08/handouts/char_freq2.pdf Thank you to Peter Norvig. I used the first source a lot and it was almost my only source.