There is a small bug, I´d not necessarily expect for the package to get it right, but maybe it would be good to throw an error if there are strings in there it doesn´t understand...
print(w2n.word_to_num('twothousand and one'))
1
print(w2n.word_to_num('two thousand and one'))
2001
There is a small bug, I´d not necessarily expect for the package to get it right, but maybe it would be good to throw an error if there are strings in there it doesn´t understand...
Thanks for the package :)