Metadata-Version: 2.1
Name: zahlwort2num
Version: 0.1.6
Summary: A small package for handy conversion of german numerals (also ordinal / signed) written as words to numbers.
Home-page: https://github.com/walu2/zahlwort2num
Author: Piotr Walkowski
Author-email: piotr@deluxe-soft.com
License: UNKNOWN
Description: # zahlwort2num (v. 0.1.6)
        
        :de: :de: :de:
        A small but useful (due shortage of/low quality support for lang_DE) package for handy convertion of german numerals (also ordinal) written as words to numbers. So it converts words to numbers.
        
        This might be a good complementary lib to https://github.com/savoirfairelinux/num2words
        
        :crying_cat_face: _Currently is doesn't support Swiss variant. TBD_ :switzerland:
        
        # PyPi direct page of project 
        https://pypi.org/project/zahlwort2num/
        
        # Installation
        
        `pip2 install zahlwort2num`
        
        # Usage
        
        ### _Definition_: <br />
        
        ```python
        import zahlwort2num as w2n
        ```
        
        ### _Example_: <br />
         ```python
         w2n.convert("Zweihundertfünfundzwanzig") # => 225
         w2n.convert("neunte") # => '9.' 
         w2n.convert("minus siebenhundert Millionen achtundsiebzig") # => -700000078
        ```
         _or even stuff like:_ <br />
         ```python
         w2n.convert("sechshundertdreiundfünfzigtausendfünfhunderteinundzwanzig") # => 653521
        ```
         :see_no_evil: 
         
        #### Command line: 
        
        * _(Obviously it is better to use parameter inside apostroph due possible spaces)_
        ```
        bin/zahlwort2num-convert "eine Million siebenhunderteinundzwanzig"
        ```
        # WIKI
        TBD
        
        # Already implemented features :sunglasses:
        * Theoretically works for any number from range 0 upto 999 * 10^1027 [big numbers]
        * Command-line mode ([see](#command-line) above)
        * Supported with ordinal numerals (incl. inflections [sufficies like `'ste', 'ten'` etc. ])<br />
          _In this case it returns coerced __String__ type value e.g '15.' instead of __Integer___ :point_up: 
        * Relative mild rules in terms of trailing whitespaces, lower/upper-case (unification).
        * Handling of signed numerals (including ordinal ones) e.g `'minus zehn'`
        
        # TODO / Known issues
        - [x] ~~Make POC, functional for all common cases~~
        - [x] ~~Ordinal number support~~
        - [x] ~~Take care for exceptions / trailing whitespaces etc.~~
        - [x] ~~Make structure + publish as PyPI package~~
        - [x] Command line support :computer:
        - [ ] More comprehensible tests
        - [ ] Swiss variant
        - [ ] More fault tolerant (ß -> ss) etc
        - [ ] Larger scale than 10^60
        - [ ] Ordinal with very large numbers (without addons) e.g `Millionste`
        - [ ] Few benchmark improvements (e.g tail recursion etc)
        - [ ] Better error handling + validation for idiotical cases (e.g `minus null Miliarde`)
        - [ ] Simplify/refactor POC code, add better documentation
        - [ ] Fractions?
        
        
        
Keywords: german nlp numeral converter deutsch ordinal zahl number
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Text Processing :: Linguistic
Description-Content-Type: text/markdown
