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.

[EX Q]: The Warren Commission Report. By The President's Commission on the Assassination of President Kennedy. Chapter seven.
[EX A]: The Warren Commission Report. By The President's Commission on the Assassination of President Kennedy. Chapter 7.

[EX Q]: The entry in his self styled, quote, Historic Diary, end quote, for October twenty one, nineteen fifty nine, reports, quote,
[EX A]: The entry in his self styled, quote, Historic Diary, end quote, for October 21, 1959, reports, quote,

[EX Q]: as there had been before; as in the year eighteen forty nine, a year memorable for the Rush murders at Norwich,
[EX A]:
as there had been before; as in the year 1849, a year memorable for the Rush murders at Norwich,