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.
Q: This occurred in November eighteen thirty four. The Custom House officials were in a state of consternation,
A: 
This occurred in November 1834. The Custom House officials were in a state of consternation,