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: As the Society put it in eighteen twenty seven, "the friends to the improvement of prison discipline will regret to learn

Answer: As the Society put it in 1827, "the friends to the improvement of prison discipline will regret to learn


Question: or the keeper made them a special grant of six pence per diem out of the common stock;

Answer: or the keeper made them a special grant of 6 pence per diem out of the common stock;


Question: three hundred debtors and nine hundred criminals in Newgate, or twelve hundred prisoners in all.

Answer:
300 debtors and 900 criminals in Newgate, or twelve hundred prisoners in all.