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.
--------
Question: In eighteen fifty three three men escaped in company from one of the wards in the middle yard.

Answer: In 1853 three men escaped in company from one of the wards in the middle yard.


Question: In the second edition of the "Regne Animal," published in eighteen twenty eight,

Answer: In the second edition of the "Regne Animal," published in 1828,


Question: in eighteen oh seven, and when only twenty two, he succeeded to his father's share in the business.

Answer:
in 1807, and when only twenty two, he succeeded to his father's share in the business.