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: Consider Input: ['and', 'I', 'moved', 'to', 'Harare', 'in', '1985', 'social', 'justice', 'was', 'at', 'the', 'core', 'of', "Zimbabwe's", 'national', 'health', 'policy', 'the', 'new', 'government', 'emerged', 'from', 'a', 'long', 'war', 'of', 'independence', 'and', 'immediately', 'proclaimed', 'a', 'socialist', 'agenda', 'healthcare', 'services', 'primary', 'education', 'became', 'essentially', 'free', 'a', 'massive', 'expansion', 'of', 'rural', 'health', 'centers', 'place', 'roughly', '80%', 'of', 'the', 'population', 'less', 'than', 'a', 'two-hour', 'walk', 'from', 'these', 'facilities', 'a', 'truly', 'remarkable', 'accomplishment', 'in', '1980', 'the', 'year', 'of', 'independence', '25', 'percent', 'of', 'Zimbabwe', 'and', 'children', 'were', 'fully', 'immunized', 'by', '1990', 'a', 'mere', 'decade', 'later', 'this', 'proportion', 'stood', 'at', '80', 'percent', 'I', 'felt', 'tremendously', 'privileged', 'to', 'be', 'part']

Output: ['When', 'I', 'moved', 'to', 'Harare', 'in', '1985,', 'social', 'justice', 'was', 'at', 'the', 'core', 'of', "Zimbabwe's", 'national', 'health', 'policy.', 'The', 'new', 'government', 'emerged', 'from', 'a', 'long', 'war', 'of', 'independence', 'and', 'immediately', 'proclaimed', 'a', 'socialist', 'agenda', 'healthcare', 'services', 'primary', 'education', 'became', 'essentially', 'free.', 'A', 'massive', 'expansion', 'of', 'rural', 'health', 'centers', 'placed', 'roughly', '80%', 'of', 'the', 'population', 'less', 'than', 'a', 'two-hour', 'walk', 'from', 'these', 'facilities,', 'a', 'truly', 'remarkable', 'accomplishment.', 'In', '1980,', 'the', 'year', 'of', 'independence,', '25', 'percent', 'of', 'Zimbabwe', 'and', 'children', 'were', 'fully', 'immunized.', 'By', '1990,', 'a', 'mere', 'decade', 'later,', 'this', 'proportion', 'stood', 'at', '80', 'percent.', 'I', 'felt', 'tremendously', 'privileged', 'to', 'be', 'part']

Input: Consider Input: ['so', 'you', 'may', 'or', 'may', 'not', 'already', 'know', 'that', 'any', 'linear', 'equation', 'can', 'be', 'written', 'in', 'the', 'form', 'y', 'is', 'equal', 'to', 'MX', 'plus', 'B', 'where', 'm', 'is', 'the', 'slope', 'of', 'the', 'line', 'the', 'same', 'slope', 'that', "we've", 'been', 'dealing', 'with', 'the', 'last', 'few', 'videos', 'the', 'rise', 'over', 'run', 'of', 'the', 'line', 'or', 'the', 'inclination', 'of', 'the', 'line', 'and', 'B', 'is', 'the', 'y-intercept', 'y-intercept', 'I', 'think', "it's", 'pretty', 'easy', 'to', 'verify', 'that', 'B', 'is', 'a', 'y-intercept', 'the', 'way', 'you', 'verify', 'that', 'is', 'you', 'substitute', 'X', 'is', 'equal', 'to', '0', 'if', 'you', 'get', 'X', 'is', 'equal', 'to', '0', 'remember', 'X', 'is']

Output: ['So', 'you', 'may', 'or', 'may', 'not', 'already', 'know', 'that', 'any', 'linear', 'equation', 'can', 'be', 'written', 'in', 'the', 'form', 'y', 'is', 'equal', 'to', 'mx', 'plus', 'b.', 'Where', 'm', 'is', 'the', 'slope', 'of', 'the', 'line.', 'The', 'same', 'slope', 'that', "we've", 'been', 'dealing', 'with', 'the', 'last', 'few', 'videos.', 'The', 'rise', 'over', 'run', 'of', 'the', 'line.', 'Or', 'the', 'inclination', 'of', 'the', 'line.', 'And', 'b', 'is', 'the', 'y-intercept', 'y-intercept', 'I', 'think', "it's", 'pretty', 'easy', 'to', 'verify', 'that', 'b', 'is', 'a', 'y-intercept.', 'The', 'way', 'you', 'verify', 'that', 'is', 'you', 'substitute', 'x', 'is', 'equal', 'to', '0.', 'If', 'you', 'get', 'x', 'is', 'equal', 'to', '0--', 'remember', 'x', 'is']

Input: Consider Input: ['[Music]', 'Nicholas', 'steno', 'is', 'rarely', 'heard', 'of', 'outside', 'intro', 'to', 'geology', 'but', 'anyone', 'hoping', 'to', 'understand', 'life', 'on', 'earth', 'should', 'see', 'how', 'steno', 'expanded', 'and', 'connected', 'those', 'very', 'concepts', 'earth', 'life', 'and', 'understanding', 'born', 'Niels', 'Stenson', 'in', '1638', 'Denmark', 'son', 'of', 'a', 'goldsmith', 'he', 'was', 'a', 'sickly', 'kid', 'whose', 'school', 'chums', 'died', 'of', 'plague', 'he', 'survived', 'to', 'cut', 'up', 'corpses', 'as', 'an', 'anatomist', 'studying', 'organs', 'shared', 'across', 'species', 'he', 'found', 'a', 'duct', 'in', 'animal', 'skulls', 'that', 'sends', 'saliva', 'to', 'the', 'mouth', 'he', 'refuted', 'de', 'cartes', 'idea', 'that', 'only', 'humans', 'had', 'a', 'pineal', 'gland', 'proving', 'it', "wasn't", 'the', 'seat', 'of', 'the']
Output: ['[Music]', 'Nicholas', 'steno', 'is', 'rarely', 'heard', 'of', 'outside', 'Intro', 'to', 'Geology,', 'but', 'anyone', 'hoping', 'to', 'understand', 'life', 'on', 'Earth', 'should', 'see', 'how', 'Steno', 'expanded', 'and', 'connected', 'those', 'very', 'concepts:', 'Earth,', 'life,', 'and', 'understanding.', 'Born', 'Niels', 'Stensen', 'in', '1638', 'Denmark,', 'son', 'of', 'a', 'goldsmith,', 'he', 'was', 'a', 'sickly', 'kid', 'whose', 'school', 'chums', 'died', 'of', 'plague.', 'He', 'survived', 'to', 'cut', 'up', 'corpses', 'as', 'an', 'anatomist,', 'studying', 'organs', 'shared', 'across', 'species.', 'He', 'found', 'a', 'duct', 'in', 'animal', 'skulls', 'that', 'sends', 'saliva', 'to', 'the', 'mouth.', 'He', 'refuted', 'de', 'cartes', 'idea', 'that', 'only', 'humans', 'had', 'a', 'pineal', 'gland,', 'proving', 'it', "wasn't", 'the', 'seat', 'of', 'the']