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.

The Secretary of the Treasury submitted this planning document on August 31, 1964,
The Secretary of the Treasury submitted this planning document on August thirty one, nineteen sixty four,

cap. 64, and 5 George IV. cap. 85
cap. sixty four, and five George the fourth cap. eighty five

the necessity for which was urged by Mr. Addison, when Secretary of State, in 1717.

the necessity for which was urged by Mr. Addison, when Secretary of State, in seventeen seventeen.