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 master's side, the cabin side, and the common side. Payment of a fee of three shillings gained the debtor admission to the two first named;
the master's side, the cabin side, and the common side. Payment of a fee of 3 shillings gained the debtor admission to the two first named;

where they stayed, except for vacations, until the spring of nineteen forty eight.
where they stayed, except for vacations, until the spring of 1948.

In eighteen eighteen, out of five hundred and eighteen prisons in the United Kingdom,
In 1818, out of five hundred and eighteen prisons in the United Kingdom,