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: The condition of that prison in eighteen fifty may be gathered from the pages of the report. Not much had been done to remedy the old defects;

Answer: The condition of that prison in 1850 may be gathered from the pages of the report. Not much had been done to remedy the old defects;

Question: John Williams, a young fellow only twenty three years of age, awaited execution in eighteen twenty seven for stealing in a dwelling house.

Answer: John Williams, a young fellow only twenty three years of age, awaited execution in 1827 for stealing in a dwelling house.

Question: In eighteen sixty one a similar work was undertaken to provide separate cellular accommodation for the female inmates of Newgate,

Answer:
In 1861 a similar work was undertaken to provide separate cellular accommodation for the female inmates of Newgate,