akshaynagpal / w2n

Convert number words (eg. twenty one) to numeric digits (21)
http://w2n.readthedocs.io
MIT License
169 stars 78 forks source link

Added support for negative number in words and in numbers. #52

Closed iSOLveIT closed 1 year ago

iSOLveIT commented 3 years ago

Okay so I recently, came across this package and I must say I enjoyed it. I needed to change the negative number in words to numbers. This is where I realised the feature was not yet supported. Since the package is really helpful, I am opting to contribute to it by adding support for negative numbers.

From the issues, I saw this feature has been asked by many and you had asked the person whether negative number are common thing in sentences or number words . Well, in my opinion, they are and I have listed just a few applications of it in sentences.

Application of negative number in common sentence with some links proving them

These and many more are examples to prove that negative is used in common sentences. Also, this module is to change a number in words to numbers for arithmetic calculations so the feature is very important.

That being said I think adding the ability to handle negatives will be important. I would love to get a response from you and the team.

Thanks.