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.

The condition of that prison in eighteen fifty may be gathered from the pages of the report. Not much had been done to remedy the old defects;
The condition of that prison in 1850 may be gathered from the pages of the report. Not much had been done to remedy the old defects;

The Science: History of the Universe, Volume five. Edited by Francis Rolt Wheeler.
The Science: History of the Universe, Volume 5. Edited by Francis Rolt Wheeler.

entering the US Marine corp at seventeen, this streak of independence was strengthened by exotic journeys to Japan,

entering the US Marine corp at 17, this streak of independence was strengthened by exotic journeys to Japan,