You will be given a definition of a task first, then some input of the task.
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.

['in', '2008', 'Rohan', 'Hassan', 'age', '17', 'boarded', 'a', 'flight', 'from', 'Minneapolis', 'to', 'the', 'Horn', 'of', 'Africa', 'and', 'while', 'berhan', 'was', 'the', 'youngest', 'recruit', 'he', 'was', 'not', 'alone', 'al-shabaab', 'managed', 'to', 'recruit', 'over', 'two', 'dozen', 'young', 'men', 'in', 'their', 'late', 'teens', 'and', 'early', '20s', 'with', 'a', 'heavy', 'presence', 'on', 'social', 'media', 'platforms', 'like', 'Facebook', 'with', 'the', 'internet', 'and', 'other', 'technologies', "they've", 'changed', 'our', 'everyday', 'lives', 'but', "they've", 'also', 'changed', 'recruitment', 'radicalization', 'and', 'the', 'front', 'lines', 'of', 'conflict', 'today', 'what', 'about', 'the', 'links', 'connecting', 'Twitter', 'Google', 'and', 'protesters', 'fighting', 'for', 'democracy', 'these', 'numbers', 'represent', "Google's", 'public', 'dns', 'servers', 'effectively', 'the', 'only', 'digital']
Output:
In 2008, Burhan Hassan, age 17, boarded a flight from Minneapolis to the Horn of Africa. And while Burhan was the youngest recruit, he was not alone. Al-Shabaab managed to recruit over two dozen young men in their late teens and early 20s with a heavy presence on social media platforms like Facebook. With the Internet and other technologies, they've changed our everyday lives, but they've also changed recruitment, radicalization and the front lines of conflict today. What about the links connecting Twitter, Google and protesters fighting for democracy? These numbers represent Google's public DNS servers, effectively the only digital