I woke up last night with a thought in my head: Can PHP be used to generate random words that sound natural? (Like the Lorem ipsum verses).
- Words being single letter: 'a,e,i,o,u'
- Words being double letter: any combination of vowel and consonant.
- Maximum word length would be I think six letters.
The purpose would be to fill space on website templates with this instead of 'Lorem ipsum', or send test emails for certain PHP scripts to make sure mail() works.
But my thoughts on how it would work are that PHP would generate random length words, 1-6 letters each, with a few "don't do this" rules like "no two single-letter words next to each other" or "no three-vowels in a row" or "no three-consonants in a row" and automatically add punctuation and capitalization after between 4 and 8 words to a sentence.
Would this be at all possible, and if so, are there any pre-existing classes or functions I could implement?