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.

Example Input: She had a little fortune of her own, some one thousand seven hundred pounds or one thousand eight hundred pounds,
Example Output: She had a little fortune of her own, some £1700 or £1800,

Example Input: seven. Certain of my documents are in the small blue valise.
Example Output: 7. Certain of my documents are in the small blue valise.

Example Input: Abuses and irregularities, which had been partially remedied by the reform introduced in eighteen thirty seven, were once more in the ascendant.
Example Output:
Abuses and irregularities, which had been partially remedied by the reform introduced in 1837, were once more in the ascendant.