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]: On a certain day, the twenty seventh October, eighteen sixty two, the two were arrested simultaneously;
[EX A]: On a certain day, the 27th October, 1862, the two were arrested simultaneously;

[EX Q]: Within a couple of years the number of persons sentenced to death in England had fallen from four hundred and thirty eight in eighteen thirty seven
[EX A]: Within a couple of years the number of persons sentenced to death in England had fallen from four hundred and thirty eight in 1837

[EX Q]: It will be recalled from the discussion in chapter three
[EX A]:
It will be recalled from the discussion in chapter 3