{ "info": { "author": "Wouter Bolsterlee", "author_email": "uws@xs4all.nl", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: BSD License", "Natural Language :: Dutch", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Internationalization", "Topic :: Text Processing :: Filters", "Topic :: Text Processing :: Linguistic" ], "description": "Telwoord\n========\n\nA Python library to convert numbers into their Dutch (nl) written form.\n\n.. image:: https://travis-ci.org/wbolster/telwoord.png?branch=master\n :target: https://travis-ci.org/wbolster/telwoord\n\nLinks:\n\n* Code: https://github.com/wbolster/telwoord\n* PyPI: https://pypi.python.org/pypi/telwoord\n* Travis CI: https://travis-ci.org/wbolster/telwoord\n\nInstallation\n============\n\n\nTo install from PyPI::\n\n $ pip install telwoord\n\nThere are no dependencies; a Python 2 or Python 3 interpreter is all you need.\n\n\nUsage\n=====\n\nUse ``telwoord.cardinal()`` to convert an integer to its string representation.\n\nBy default, a friendly representation is used, based on some common style\nrecommendations about when to spell out numbers, and when to leave them as is::\n\n >>> from telwoord import cardinal\n\n >>> numbers = (0, 1, 2, 3, 19, 20, 30, 31, 100, 200, 215, 300, 14999, 15000, 1000000, 12345678)\n\n >>> for n in numbers: print(\"{0: 10d} {1}\".format(n, cardinal(n)))\n 0 nul\n 1 een\n 2 twee\n 3 drie\n 19 negentien\n 20 twintig\n 30 dertig\n 31 31\n 100 honderd\n 200 tweehonderd\n 215 215\n 300 driehonderd\n 14999 14999\n 15000 15 duizend\n 1000000 1 miljoen\n 12345678 12345678\n\nTo forcibly spell out all the numbers, pass ``friendly=False``::\n\n >>> for n in numbers: print(\"{0: 10d} {1}\".format(n, cardinal(n, friendly=False)))\n 0 nul\n 1 een\n 2 twee\n 3 drie\n 19 negentien\n 20 twintig\n 30 dertig\n 31 eenendertig\n 100 honderd\n 200 tweehonderd\n 215 tweehonderdvijftien\n 300 driehonderd\n 14999 veertienduizend negenhonderdnegenennegentig\n 15000 vijftienduizend\n 1000000 een miljoen\n 12345678 twaalf miljoen driehonderdvijfenveertigduizend zeshonderdachtenzeventig\n\nIn addition to cardinal numbers, you can also convert a number into its ordinal\nstring representation using ``telwoord.ordinal()``::\n\n >>> from telwoord import ordinal\n\n >>> for n in numbers: print(\"{0: 10d} {1}\".format(n, ordinal(n)))\n 0 nulde\n 1 eerste\n 2 tweede\n 3 derde\n 19 negentiende\n 20 twintigste\n 30 dertigste\n 31 31e\n 100 honderdste\n 200 tweehonderdste\n 215 215e\n 300 driehonderdste\n 14999 14999e\n 15000 15 duizendste\n 1000000 1 miljoenste\n 12345678 12345678e\n\nThe ``telwoord.ordinal()`` function also takes a ``friendly`` argument that\nworks the same way as for ``telwoord.cardinal()``.\n\n\nSpelling rules and style recommendations\n========================================\n\n* Taalunie, `Aaneenschrijven van telwoorden\n `_\n\n* Genootschap Onze Taal, `Getallen in letters of cijfers\n `_\n\n* Genootschap Onze Taal, `Getallen uitschrijven\n `_\n\n\nVersion history\n===============\n\n* 0.4\n\n * Improved friendly representation for some negative numbers\n\n* 0.3\n\n * Implemented support for ordinal numbers\n\n* 0.2\n\n * Improved support for friendly representation of negative numbers\n\n* 0.1\n\n * Initial release\n * Support for spelling out numbers, optionally in a friendly way\n\n\nDevelopment\n===========\n\nTo install from a source tree::\n\n $ pip install -e .\n\nTo run the tests you will need a few extra packages::\n\n $ pip install -r test-requirements.txt\n\nTo run the tests::\n\n $ py.test\n\nTo test against multiple Python versions::\n\n $ tox\n\nPossible future work:\n\n* Fractions, e.g. \"tweederde\", \"twaalf tachtigste\"\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/wbolster/telwoord", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "telwoord", "package_url": "https://pypi.org/project/telwoord/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/telwoord/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/wbolster/telwoord" }, "release_url": "https://pypi.org/project/telwoord/0.4/", "requires_dist": null, "requires_python": null, "summary": "Convert numbers into their Dutch written form", "version": "0.4" }, "last_serial": 1558433, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "7400029396e654fc2b5ce5ff76cf7ad6", "sha256": "e746830d252b2fdbcfc1eb2cb08874081f0b14338e5a4b1e524368c79b4c0665" }, "downloads": -1, "filename": "telwoord-0.1.tar.gz", "has_sig": false, "md5_digest": "7400029396e654fc2b5ce5ff76cf7ad6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2738, "upload_time": "2013-10-24T23:00:52", "url": "https://files.pythonhosted.org/packages/1c/e5/d36d8ae0e6cf2263a2616b14d9a3ab23aff33d90a8452efd3bdb5c16636f/telwoord-0.1.tar.gz" } ], "0.1dev": [], "0.2": [ { "comment_text": "", "digests": { "md5": "15263f7e4f8352a9a6982f6beaed936c", "sha256": "88c0a4bbb335331202488c73780e8598f1167fd2e6ac927e98e14ed46c2ae45f" }, "downloads": -1, "filename": "telwoord-0.2.tar.gz", "has_sig": false, "md5_digest": "15263f7e4f8352a9a6982f6beaed936c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3058, "upload_time": "2013-10-27T14:03:09", "url": "https://files.pythonhosted.org/packages/48/5c/d5a77bac7e6903243e18f5758e5babe1f540fafaf37db2ec4f03214dc432/telwoord-0.2.tar.gz" } ], "0.2dev": [], "0.3": [ { "comment_text": "", "digests": { "md5": "52fa8a26c0fc9c500431733d80f1f38e", "sha256": "aa5227b563ae177df80376ee92195a017ebe36ef3d57b4fe18894efb1092789f" }, "downloads": -1, "filename": "telwoord-0.3.tar.gz", "has_sig": false, "md5_digest": "52fa8a26c0fc9c500431733d80f1f38e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3581, "upload_time": "2013-10-27T15:12:42", "url": "https://files.pythonhosted.org/packages/38/9c/6cf8a19b1a423e5f5e6af18877fe090a960213defac28c6f55216ec07ded/telwoord-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "0d3752e49aeb8a676827aa1c97410bc7", "sha256": "9c8c9a9aeca052f964ca5f2394d528cd1a03b8f703d8b34cc9e663f14c98eecf" }, "downloads": -1, "filename": "telwoord-0.4.tar.gz", "has_sig": false, "md5_digest": "0d3752e49aeb8a676827aa1c97410bc7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3761, "upload_time": "2015-05-22T18:58:52", "url": "https://files.pythonhosted.org/packages/bf/71/06ab352a76fdeb0861f1f2b3574d5ddd0ad35e4f21f8aabe6e7acede42dc/telwoord-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0d3752e49aeb8a676827aa1c97410bc7", "sha256": "9c8c9a9aeca052f964ca5f2394d528cd1a03b8f703d8b34cc9e663f14c98eecf" }, "downloads": -1, "filename": "telwoord-0.4.tar.gz", "has_sig": false, "md5_digest": "0d3752e49aeb8a676827aa1c97410bc7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3761, "upload_time": "2015-05-22T18:58:52", "url": "https://files.pythonhosted.org/packages/bf/71/06ab352a76fdeb0861f1f2b3574d5ddd0ad35e4f21f8aabe6e7acede42dc/telwoord-0.4.tar.gz" } ] }