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 Seven Wonders of the Ancient World. By Edgar J. Banks. Chapter two. The Walls of Babylon.
[EX A]: The Seven Wonders of the Ancient World. By Edgar J. Banks. Chapter 2. The Walls of Babylon.

[EX Q]: The distance between the point on the seat and the door was twenty seven inches.
[EX A]: The distance between the point on the seat and the door was 27 inches.

[EX Q]: In five thirty eight the city fell, and for a time it became the home of the Persian King.
[EX A]:
In 538 the city fell, and for a time it became the home of the Persian King.