numwords_to_sentences isn't perfect - it can't tell the difference between e.g. "one thousand, two hundred, and three" = 1203 and "four, seven, twelve, three" = "4, 7, 12, 3", currently the former would give "1203" and the latter would give "26". Good enough for my purposes, though, and considering the number of bugs in the old version...
numwords_to_sentences isn't perfect - it can't tell the difference between e.g. "one thousand, two hundred, and three" = 1203 and "four, seven, twelve, three" = "4, 7, 12, 3", currently the former would give "1203" and the latter would give "26". Good enough for my purposes, though, and considering the number of bugs in the old version...