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.

for a petition of from 1 shilling, half pence to 8 shillings, according to its length,
for a petition of from one shilling, half pence to eight shillings, according to its length,

and the average daily number committed that year amounted to 3985.
and the average daily number committed that year amounted to three thousand, nine hundred eighty five.

The Science: History of the Universe, Volume 5.

The Science: History of the Universe, Volume five.