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 Input:
Already, as early as eighteen eighteen, a prison existed at Bury St. Edmunds which was a model for imitation to others at that time,

Ex Output:
Already, as early as 1818, a prison existed at Bury St. Edmunds which was a model for imitation to others at that time,

Ex Input:
approximately twenty or twenty five minutes after the shots were fired.

Ex Output:
approximately 20 or 25 minutes after the shots were fired.

Ex Input:
Other cases are recorded elsewhere, as at the Giltspur Street Compter, where in eighteen oh five Mr. Neild found a man named William Grant

Ex Output:
Other cases are recorded elsewhere, as at the Giltspur Street Compter, where in 1805 Mr. Neild found a man named William Grant