Definition: 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.
Input: then Home Secretary, and the prison, which contained five hundred and twenty cells, was occupied on the twenty first December, eighteen forty two.
Output:
then Home Secretary, and the prison, which contained five hundred and twenty cells, was occupied on the 21st December, 1842.