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:
at first, and for some few years after seventeen eighty four, executions took place occasionally at a distance from Newgate.

Ex Output:
at first, and for some few years after 1784, executions took place occasionally at a distance from Newgate.


Ex Input:
The car maintained this average speed over a distance of approximately one hundred eighty six feet immediately preceding the shot which struck the President in the head.

Ex Output:
The car maintained this average speed over a distance of approximately 186 feet immediately preceding the shot which struck the President in the head.


Ex Input:
the master's side, the cabin side, and the common side. Payment of a fee of three shillings gained the debtor admission to the two first named;

Ex Output:

the master's side, the cabin side, and the common side. Payment of a fee of 3 shillings gained the debtor admission to the two first named;