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]: became the victim of the most cowardly and unmanly outrages, and the attempted murder of the sovereign by Oxford in eighteen forty
[EX A]: became the victim of the most cowardly and unmanly outrages, and the attempted murder of the sovereign by Oxford in 1840

[EX Q]: a review of the records of Crescent Firearms revealed that the firm had shipped an Italian carbine, serial number C two seven six six,
[EX A]: a review of the records of Crescent Firearms revealed that the firm had shipped an Italian carbine, serial number C2766,

[EX Q]: seven. Certain of my documents are in the small blue valise.
[EX A]:
7. Certain of my documents are in the small blue valise.