number-parser icon indicating copy to clipboard operation
number-parser copied to clipboard

Parse numbers written in natural language

Results 19 number-parser issues
Sort by recently updated
recently updated
newest added

number-parser-0.3.0 version. ``` In [17]: parse("п'ять") Out[17]: "п'ять" In [18]: parse("п’ять") Out[18]: 'п’ять' ```

Fixes #5 Ignore parameter right now is for only the parse function(can also implement for parse_number and parse_ordinal once reviewed) Ignoring parameters present in the ignore list and not parsing...

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...

enhancement

Some edge cases that should be fixed: * "A hundred" should return "100" (similar than "one hundred"). * "twentyone" should return "21" (reference: https://en.wiktionary.org/wiki/twentyone) On the other side, when having...

bug

Thank you for your package: but there is a case which wasn't handled, the case of mixing the numbers and characters. I tried this: 1- print(parse_number("2.4 million")) It gives None...

enhancement

Regarding [isssues#66](https://github.com/scrapinghub/number-parser/issues/66), added `encoding='utf8'` to the `open()` function on line 23 in `__init__.py`. This fixes the pytest issues for Hindi, Spanish and Russian on Windows.

I have implemented the parse_roman() function.

So the ```parse_number()``` now works like this: ```python >>>parse_number('MMCDXX') '2420' ``` And ```parse()``` works like this: ```python >>> parse('Built in MDCCLXXVI', language='rom') 'Built in 1776' ```

At this moment, the main `number-parser` goal is to return the number equivalences from different languages, but only when those words are representing the number using the "decimal numeral system"...

One of the major use after building the ` number-parser ` might be to integrate it with ` price-parser ` and ` dateparser ` as suggested by @noviluni . There...