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 Chronicles of Newgate, Volume two. By Arthur Griffiths. Section thirteen: Newgate notorieties, part one.
[EX A]: The Chronicles of Newgate, Volume 2. By Arthur Griffiths. Section 13: Newgate notorieties, part 1.

[EX Q]: On a certain day, the twenty seventh October, eighteen sixty two, the two were arrested simultaneously;
[EX A]: On a certain day, the 27th October, 1862, the two were arrested simultaneously;

[EX Q]: and there on June thirteen, three twenty three B.C., he met his death.
[EX A]:
and there on June 13, 323 B.C., he met his death.