renamed Constants import to constants
ngram analysis, and nonsense-creating function