The task is to read a passage and convert numbers in their text forms into digit forms. The text numbers can be used to represent Quantity, Dates and Time, Addresses or Positions.

[EX Q]: In eighteen thirty two the dissection of bodies cut down from the gallows, which had been decreed centuries previously, was abolished;
[EX A]: In 1832 the dissection of bodies cut down from the gallows, which had been decreed centuries previously, was abolished;

[EX Q]: that he had sought and obtained a passport on June twenty five, nineteen sixty three.
[EX A]: that he had sought and obtained a passport on June 25, 1963.

[EX Q]: forty five caliber pistol, and twelve gauge riot gun.
[EX A]:
.45 caliber pistol, and 12 gauge riot gun.