Definition: In this task, you are given an input stream, and your task is to produce a grammatically correct version of the input sentence. The input to this task is a stream of words, possibly from captions generated by a speech-to-text engine, and the output is a grammatically correct version of the input stream. Stream words are in [] and have been separated with a comma. The sentence can contain words that have case, punctuation, stem-based, intra-word, and digit punctuation errors that need to be corrected. For example, the text should be uppercased/lowercased as per necessity (like the beginning of a sentence, proper nouns, etc.), and digits need to be normalized (6 as six and so on). Note that you don't need to normalize the years. You don't need to fully edit the sentences, if end of the input stream contains sentence fragments, keep them as is.
Input: ['the', 'Milgram', 'studies', 'were', 'conducted', 'in', 'order', 'to', 'study', 'the', 'willingness', 'of', 'participants', 'average', 'everyday', 'Americans', 'to', 'obey', 'authority', 'figures', 'who', 'instructed', 'them', 'to', 'perform', 'behaviors', 'that', 'conflicted', 'with', 'their', 'personal', 'beliefs', 'and', 'morals', 'and', 'as', 'you', 'can', 'probably', 'imagine', 'it', 'might', 'be', 'hard', 'to', 'recruit', 'participants', 'when', "that's", 'what', "we're", 'trying', 'to', 'study', 'and', 'so', 'in', 'order', 'to', 'keep', 'the', 'participants', 'from', 'finding', 'out', 'what', 'he', 'was', 'actually', 'trying', 'to', 'look', 'at', 'Milgram', 'used', 'deception', 'he', 'started', 'by', 'posting', 'ads', 'looking', 'for', 'people', 'to', 'participate', 'in', 'a', 'study', 'about', 'learning', 'and', 'memory', 'and', '', 'actually', 'have', 'an', 'image', 'of']
Output:
the Milgram studies were conducted in order to study the willingness of participants, average everyday Americans, to obey authority figures who instructed them to perform behaviors that conflicted with their personal beliefs and morals, and as you can probably imagine, it might be hard to recruit participants when that's what you're trying to study. And so in order to keep the participants from finding out what he was actually trying to look at, Milgram used deception. He started by posting ads looking for people to participate in a study about learning and memory, and actually have an image of