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.

In eighteen eighteen, out of five hundred and eighteen prisons in the United Kingdom,
In 1818, out of five hundred and eighteen prisons in the United Kingdom,