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: Consider Input: In eighteen twenty four Newgate had no glass in its windows, except in the infirmary and one ward of the chapel yard;

Output: In 1824 Newgate had no glass in its windows, except in the infirmary and one ward of the chapel yard;

Input: Consider Input: Thus in the years between May first, eighteen twenty seven, and thirtieth April, eighteen thirty one,

Output: Thus in the years between May 1st, 1827, and 30th April, 1831,

Input: Consider Input: On April twenty one, nineteen sixty three, the FBI field office in New York
Output: On April 21, 1963, the FBI field office in New York