The task is reading a paragraph containing numbers as digits. The digits can be used to represent Quantity, Dates and Time, Addresses or Positions. Convert the digits into their text equivalents. If a number has a prefix, postfix or punctuation preserve it in the text equivalent. 100000 is translated as hundred thousand, Roman numerals are also translated. If multiple numbers are present convert all instances.

Input: Consider Input: The Chronicles of Newgate, Volume 2. By Arthur Griffiths. Section 4: Newgate down to 1818.

Output: The Chronicles of Newgate, Volume two. By Arthur Griffiths. Section four: Newgate down to eighteen eighteen.

Input: Consider Input: In 1818 prisoners awaiting trial in Newgate, were at length relieved from this illegal infliction.

Output: In eighteen eighteen prisoners awaiting trial in Newgate, were at length relieved from this illegal infliction.

Input: Consider Input: During his Presidency, Franklin D. Roosevelt made almost 400 journeys and traveled more than 350,000 miles.
Output: During his Presidency, Franklin D. Roosevelt made almost four hundred journeys and traveled more than three hundred fifty thousand miles.