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.

sold out so large an amount of stock, that he paid sixteen thousand pounds a year in dividends to escape detection.
sold out so large an amount of stock, that he paid £16,000 a year in dividends to escape detection.

In eighteen twenty four Newgate had no glass in its windows, except in the infirmary and one ward of the chapel yard;
In 1824 Newgate had no glass in its windows, except in the infirmary and one ward of the chapel yard;

and he estimated that it took him three to four minutes to drive three blocks west from the checkpoint to Field Street,

and he estimated that it took him 3 to 4 minutes to drive three blocks west from the checkpoint to Field Street,