Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support numbers expressed in words in different languages #1

Open
Gallaecio opened this issue Apr 17, 2019 · 2 comments
Open

Support numbers expressed in words in different languages #1

Gallaecio opened this issue Apr 17, 2019 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@Gallaecio
Copy link
Member

Some expectations:

>>> parse_price('$ 4 millones')
Price(amount=Decimal('4000000'), currency='$')
>>> parse_price('$ 400 mil')
Price(amount=Decimal('400000'), currency='$')
>>> parse_price('1.45 milliards INR')
Price(amount=Decimal('1450000000'), currency='INR')
>>> parse_price('115 millions de dollars (estimation)')
Price(amount=Decimal('115000000'), currency='dollars')
>>> parse_price('Drei 000 000 $')
Price(amount=Decimal('3000000'), currency='$')
@alexander-matsievsky
Copy link
Member

@kmike kmike added the help wanted Extra attention is needed label Apr 17, 2019
rpalsaxena referenced this issue in rpalsaxena/price-parser Mar 2, 2020
@lopuhin
Copy link
Member

lopuhin commented Apr 13, 2020

Another example seen in the wild: "$54K" (expect 54000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants