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]: Early in the evening of November twenty two,
[EX A]: Early in the evening of November 22,

[EX Q]: The Chronicles of Newgate, Volume two. By Arthur Griffiths. Section twenty: Newgate Notorieties, part one.
[EX A]: The Chronicles of Newgate, Volume 2. By Arthur Griffiths. Section 20: Newgate Notorieties, part 1.

[EX Q]: Edited by Francis Rolt Wheeler. Biology. Chapter seven. Organic Functions. Part One.
[EX A]:
Edited by Francis Rolt Wheeler. Biology. Chapter 7. Organic Functions. Part One.