The task is reading a paragraph containing numbers as digits. The digits can be used to represent Quantity, Dates and Time, Addresses or Positions. Convert the digits into their text equivalents. If a number has a prefix, postfix or punctuation preserve it in the text equivalent. 100000 is translated as hundred thousand, Roman numerals are also translated. If multiple numbers are present convert all instances.

The minimum time required by Baker to park his motorcycle and reach the second floor lunchroom was within 3 seconds of the time needed to walk
The minimum time required by Baker to park his motorcycle and reach the second floor lunchroom was within three seconds of the time needed to walk

which having gone through several sessions, at last became law in 1823 to 4
which having gone through several sessions, at last became law in eighteen twenty three to four

but in the beginning of 1807 one of them, at that time just sentenced to transportation,

but in the beginning of eighteen oh seven one of them, at that time just sentenced to transportation,