scrapinghub / number-parser

Parse numbers written in natural language
BSD 3-Clause "New" or "Revised" License
104 stars 23 forks source link

First day is not 1 day or second day is not 2 day #70

Open prabhatM opened 3 years ago

prabhatM commented 3 years ago

Hi,

We can't really use "First day as 1 day or second day as 2 day" in real life context. For this reason we can't use this wonderful library.

Please leave them as they are or think of an alternative. Temporarily, give us an exception list option.

Prabhat

Gallaecio commented 3 years ago

I think it would make sense to allow specifying via parse parameter types of numbers to convert (i.e. those for which we provide specific functions: ordinal, fraction, etc.).

prabhatM commented 3 years ago

Hi!

Can we have First as 1st and then, 1st as first after conversion?

Same goes for 2nd, 3rd,...19th..... and "One" as 1, two as "2"...

If you give us a provision for a user dict, then we can use {"1st":"first","2nd":"second","3rd":"third"}.... and process for the time being...