Translation RulesHere are the rules, as best linguists under

Translation RulesHere are the rules, as best linguists understand them, for converting English into Zombie (in order ofexecution):• All occurrences of characters “eiou” (case-insensitive) are replaced with “r”.• All characters other than “zhrgbmna .!?-” (case-insensitive) are stripped.• Lower-case “r” at the end of words replaced with “rh”.• An “a” or “A” by itself will be replaced with “hra”.• Capitalization should be retained.Pro jectYour project is to write an English to Zombie translator that will take entire blocks of text and translatethem. You may assume that each block of text will be no more than 1000 characters. It is recommendedthat you write the following functions in the following order:translate_word – Takes a single English word and passes back the Zombie translation of that word.translate_nonword – Takes a sequence of non-word characters and passes back the Zombie translationof those characters.get_next_word – Takes a sentence (in English) and an index into that sentence, and passes back thenext word starting at that index.get_next_nonword – Takes a sentence (in English) and an index into that sentence and passes backthe sequence of non-word characters starting at that index.translate – Takes an entire English sentence and passes back an entire Zombie sentence.main – Prints the title and loops asking the user for a sentence, checks to see if it’s DONE, otherwiseprints the translation of the sentence.