{ "info": { "author": "Yukino Ikegami", "author_email": "yknikgm@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: MacOS", "Operating System :: Microsoft", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development", "Topic :: Text Processing" ], "description": "pytypo\n===========\n|travis| |coveralls| |landscape| |pyversion| |version| |license|\n\npytypo corrects English spelling mistakes.\nThat feature is based on TYPO CORPUS (http://luululu.com/tweet/)\nand Wikipedia (https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines)\n\nAnd this module normalizes also lengthened English expression having repeating letters.\n(e.g., this module converts \"cooooooooooooooollllllllllllll\" to \"cool\")\n\nThat feature is based on the following paper:\nSamuel Brody and Nicholas Diakopoulos.\nCooooooooooooooollllllllllllll!!!!!!!!!!!!!! using word lengthening to detect sentiment in microblogs.\nIn EMNLP2011, pp. 562-570, 2011.\nhttp://aclweb.org/anthology//D/D11/D11-1052.pdf\n\n\nContributions are welcome!\n\n\nInstallation\n============\n\n::\n\n $ pip install pytypo\n\n\nUsage\n=====\n\nImport pytypo\n--------------------------------------------\n\n::\n\n >>> import pytypo\n\n\ncorrect sentence\n--------------------------------------------\n\n::\n\n >>> pytypo.correct_sentence('you are coooolll!!!')\n you are cool!\n\n\n- correct_sentence(str)\n\n\ncorrect word\n--------------------------------------------\n\n::\n\n >>> pytypo.correct('okayyyyy')\n okay\n\n\n- correct(str)\n\n\nShorten repeated substring until threshould without dictionary\n-------------------------------------------------------------------\n\n::\n\n >>> pytypo.cut_repeat('mamisaaaaaan', 1)\n mamisan\n >>> pytypo.cut_repeat('okayyyyy', 2)\n okayy\n\n\n- cut_repeat(str, threshould)\n\n * Note that this method don't use a lengthened expression normalize table (e.g., cooll -> cool).\n If you want to normalize such expression, use `correct()` or `correct_sentence()` method.\n\nLicense\n=========\n\n- This module is licensed under MIT License.\n\n.. |travis| image:: https://travis-ci.org/ikegami-yukino/pytypo.svg?branch=master\n :target: https://travis-ci.org/ikegami-yukino/pytypo\n :alt: travis-ci.org\n\n.. |coveralls| image:: https://coveralls.io/repos/ikegami-yukino/pytypo/badge.svg?branch=master&service=github\n :target: https://coveralls.io/github/ikegami-yukino/pytypo?branch=master\n :alt: coveralls.io\n\n.. |landscape| image:: https://landscape.io/github/ikegami-yukino/pytypo/master/landscape.svg?style=flat\n :target: https://landscape.io/github/ikegami-yukino/pytypo/master\n :alt: Code Health\n\n.. |pyversion| image:: https://img.shields.io/pypi/pyversions/pytypo.svg\n\n.. |version| image:: https://img.shields.io/pypi/v/pytypo.svg\n :target: http://pypi.python.org/pypi/pytypo/\n :alt: latest version\n\n.. |license| image:: https://img.shields.io/pypi/l/pytypo.svg\n :target: http://pypi.python.org/pypi/pytypo/\n :alt: license\n\n\n\nCHANGES\n==========\n\n0.3 (2017-10-18)\n---------------------\n\nAdd many cases from Wikipedia\n\n\n0.2 (2016-04-15)\n---------------------\n\nAdd many cases\n\n0.1 (2016-04-14)\n---------------------\n\nFirst release.\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ikegami-yukino/pytypo", "keywords": "normalize", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "pytypo", "package_url": "https://pypi.org/project/pytypo/", "platform": "POSIX", "project_url": "https://pypi.org/project/pytypo/", "project_urls": { "Homepage": "https://github.com/ikegami-yukino/pytypo" }, "release_url": "https://pypi.org/project/pytypo/0.3.0/", "requires_dist": null, "requires_python": "", "summary": "corrects English spelling mistakes and normalize. (e.g., \"cooooooooooooooollllllllllllll\" to \"cool\")", "version": "0.3.0" }, "last_serial": 3259134, "releases": { "0.1": [], "0.1.0": [ { "comment_text": "", "digests": { "md5": "d274f8d8b214f772e4a6ced60709cdf6", "sha256": "a58481b9c560f36a0fd0d1c95f2c127f810467492c4fe8103013a8389de0ac52" }, "downloads": -1, "filename": "pytypo-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d274f8d8b214f772e4a6ced60709cdf6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 55254, "upload_time": "2016-04-14T05:52:53", "url": "https://files.pythonhosted.org/packages/8b/e1/b760e45b714a49009abc52a8677e8cd99531acacf99024c96397459e6216/pytypo-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "0db56325b21b91f660ed6c48b40ee7de", "sha256": "5107f3851b25059017f4d89e6d70052d82bc51fd7d668272f81a2a09416fd447" }, "downloads": -1, "filename": "pytypo-0.1.1.tar.gz", "has_sig": false, "md5_digest": "0db56325b21b91f660ed6c48b40ee7de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 55243, "upload_time": "2016-04-14T06:00:20", "url": "https://files.pythonhosted.org/packages/ef/b7/afbcc8382608e3231796aa60c8c329db6db1445599d422d7a264186ce595/pytypo-0.1.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "bbd57d8be301b6268420874c180f6f8b", "sha256": "8351aa8a7d00a3fdd7d6e2f2f4f474468703fd50f248bdea223c9c960b396616" }, "downloads": -1, "filename": "pytypo-0.2.tar.gz", "has_sig": false, "md5_digest": "bbd57d8be301b6268420874c180f6f8b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 107299, "upload_time": "2016-04-15T13:15:19", "url": "https://files.pythonhosted.org/packages/66/d1/2007851c30413d0e8f16bb86d6238f7cb40b0cc7766b695b3e81606e8753/pytypo-0.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "e38457d2e9ea06ae86760f71351e8d74", "sha256": "159b8fe98ab2523b03fae00fcfbc03262212cbd18ed04201ca2fa70cd3108aec" }, "downloads": -1, "filename": "pytypo-0.2.0.tar.gz", "has_sig": false, "md5_digest": "e38457d2e9ea06ae86760f71351e8d74", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61186, "upload_time": "2016-04-15T13:17:27", "url": "https://files.pythonhosted.org/packages/77/75/dc0c97edeba371fe9bf4228282cdf8f8ba06dc7451382f5d33581ff15ce6/pytypo-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "898101f73213801af79dea9b068b05ca", "sha256": "ab0467dc93725b4fb1d2c2c15ede93a1825ec27fae63bd1af59d7c8d257913cc" }, "downloads": -1, "filename": "pytypo-0.3.0.tar.gz", "has_sig": false, "md5_digest": "898101f73213801af79dea9b068b05ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 74199, "upload_time": "2017-10-18T09:11:35", "url": "https://files.pythonhosted.org/packages/9f/80/b0578690bcac288cf9af76abecf2fd30978ea75ebe67da817c018c444abb/pytypo-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "898101f73213801af79dea9b068b05ca", "sha256": "ab0467dc93725b4fb1d2c2c15ede93a1825ec27fae63bd1af59d7c8d257913cc" }, "downloads": -1, "filename": "pytypo-0.3.0.tar.gz", "has_sig": false, "md5_digest": "898101f73213801af79dea9b068b05ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 74199, "upload_time": "2017-10-18T09:11:35", "url": "https://files.pythonhosted.org/packages/9f/80/b0578690bcac288cf9af76abecf2fd30978ea75ebe67da817c018c444abb/pytypo-0.3.0.tar.gz" } ] }