Once again, I am asking for a bit of help. I am trying to write this following program.
Program Guideline/Description:
Write a program that is capable of generating random sentences (repeatedly) using lists and strings. Start by reviewing what components make up a sentence and the order in which they occur e.g. subject, verb, object
You may also want to do some research on “Noam Chomsky Syntactic Structures.”
*Make a plan (either as point-form pseudo code or as a flowchart) for how you will randomly pick words from lists of articles, nouns, verbs (transitive, intransitive), adjectives, adverbs etc. and generate a sentence patter. Do apply the appropriate capitalization and punctuation. *
Your program should be able to generate various sentences.
I am trying to get a top mark, which includes this: * 50 marks: generate a random paragraph (repeatedly) consisting of at least 5-10 sentences of different lengths and of different variety / types by combining words from lists of nouns, adjectives, verbs, adverbs, conjunctions* etc. Each time the program loops, a new paragraph should be generated. At least two sentences contain 6 or more words . Appropriate punctuation and capitalization are applied correctly.
And this is what I have so far.
It keeps repeating the same random sentence, and I genuinely cannot for the life of me figure out how to generate 5-10 random sentences of varying length. Would someone be able to help me out? I also need to include a function somehow.