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.

Approximately seven or eight minutes later
Approximately 7 or 8 minutes later

It also advised the Secret Service of the circulation on November twenty one of a handbill sharply critical of President Kennedy,
It also advised the Secret Service of the circulation on November 21 of a handbill sharply critical of President Kennedy,

and in eighteen sixty two he was obliged to fly the country, hopelessly and irretrievably ruined.

and in 1862 he was obliged to fly the country, hopelessly and irretrievably ruined.