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 seven Lord John Russell's acts swept away a number of capital offenses, including cutting and maiming, rick burning,
[EX A]: In 1837 Lord John Russell's acts swept away a number of capital offenses, including cutting and maiming, rick burning,

[EX Q]: In eighteen fifty Sir George Grey brought forward a new motion to the same effect,
[EX A]: In 1850 Sir George Grey brought forward a new motion to the same effect,

[EX Q]: but in either event he would have been in the roominghouse at about one p.m.
[EX A]:
but in either event he would have been in the roominghouse at about 1 p.m.