nielstron / quantulum3

Library for unit extraction - fork of quantulum for python3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding custom unit

hrabkin opened this issue · comments

Describe the bug
Adding custom unit not working for some variations

To Reproduce
Steps to reproduce the behavior:

Works.:
add_custom_unit(name="pound-mass", surfaces=["lbr"], entity="mass")

Doesn't work only for "gr":
add_custom_unit(name="gram", surfaces=["grams", "grm", "gr"], entity="mass")