TASK DEFINITION: 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.
PROBLEM: on the opening of Whitecross prison for debtors in 1815.

SOLUTION: on the opening of Whitecross prison for debtors in eighteen fifteen.

PROBLEM: Eleven years later, in 586, he destroyed the sacred Hebrew city,

SOLUTION: Eleven years later, in five eighty six, he destroyed the sacred Hebrew city,

PROBLEM: But about 1850 the two sides were distinctly hostile, and the controversy ran high.

SOLUTION:
But about eighteen fifty the two sides were distinctly hostile, and the controversy ran high.