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]: Each agent carried a thirty eight caliber pistol, and a shotgun and automatic rifle were also available.
[EX A]: Each agent carried a .38 caliber pistol, and a shotgun and automatic rifle were also available.

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

[EX Q]: Thus in the years between May first, eighteen twenty seven, and thirtieth April, eighteen thirty one,
[EX A]:
Thus in the years between May 1st, 1827, and 30th April, 1831,

