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.

One large item of his expenditure was a contested election at Lambeth, which he gained at a cost of ten thousand pounds.
One large item of his expenditure was a contested election at Lambeth, which he gained at a cost of £10,000.