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.

Let me give you an example: Jacob ate three burgers today.
The answer to this example can be: Jacob ate 3 burgers today.
Here is why: The number in text form three is converted into the number in digit form 3.

OK. solve this:
John Williams, a young fellow only twenty three years of age, awaited execution in eighteen twenty seven for stealing in a dwelling house.
Answer:
John Williams, a young fellow only twenty three years of age, awaited execution in 1827 for stealing in a dwelling house.