{ "info": { "author": "spirit", "author_email": "hiddenspirit@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2" ], "description": "language_tool \u2013 LanguageTool through server mode\n================================================\n\n\nExample usage\n-------------\n\n>>> import language_tool\n>>> lang_tool = language_tool.LanguageTool(\"en-US\")\n>>> text = \"A sentence with a error in the Hitchhiker\u2019s Guide tot he Galaxy\"\n>>> matches = lang_tool.check(text)\n>>> len(matches)\n2\n\n\nCheck out some ``Match`` object attributes:\n\n>>> matches[0].fromy, matches[0].fromx\n(0, 16)\n>>> matches[0].ruleId, matches[0].replacements\n('EN_A_VS_AN', ['an'])\n>>> matches[1].fromy, matches[1].fromx\n(0, 50)\n>>> matches[1].ruleId, matches[1].replacements\n('TOT_HE', ['to the'])\n\n\nPrint a ``Match`` object:\n\n>>> print(matches[1])\nLine 1, column 51, Rule ID: TOT_HE[1]\nMessage: Did you mean 'to the'?\nSuggestion: to the\n... with a error in the Hitchhiker\u2019s Guide tot he Galaxy\n ^^^^^^\n\n\nAutomatically apply suggestions to the text:\n\n>>> language_tool.correct(text, matches)\n'A sentence with an error in the Hitchhiker\u2019s Guide to the Galaxy'\n\n\nInstallation\n------------\n\nTo install the package for Python 3, use::\n\n $ ./setup.py install\n\nTo install the package for Python 2, use::\n\n $ python2 setup.py install\n\nOn Windows, you may use one of the MSI binary packages provided on the\n`download page `_.\n\n\nPrerequisites\n-------------\n\n- `Python 3.2+ `_ (or 2.7)\n- `LanguageTool `_\n- `lib3to2 `_\n (if installing for Python 2)\n\n\nThe installation process should take care of downloading LanguageTool\n(it may take a few minutes).\nOtherwise, you can manually download `LanguageTool-stable.zip\n`_\nand unzip it into where the ``language_tool`` package resides.\n\nLanguageTool requires Java 6 or later.", "description_content_type": null, "docs_url": null, "download_url": "https://bitbucket.org/spirit/language_tool/downloads", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/spirit/language_tool", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "language_tool", "package_url": "https://pypi.org/project/language_tool/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/language_tool/", "project_urls": { "Download": "https://bitbucket.org/spirit/language_tool/downloads", "Homepage": "https://bitbucket.org/spirit/language_tool" }, "release_url": "https://pypi.org/project/language_tool/0.3/", "requires_dist": null, "requires_python": null, "summary": "LanguageTool through server mode", "version": "0.3" }, "last_serial": 1322505, "releases": { "0.2a0": [], "0.2a1": [], "0.2a2": [], "0.2a3": [], "0.2a4": [], "0.2a5": [], "0.2a6": [], "0.2a7": [], "0.2a8": [], "0.3": [ { "comment_text": "", "digests": { "md5": "92998800322c31ace512c6a3ddc9045d", "sha256": "c4c956199714b8d587a9fdbb4a801d908a5a67b2f8bca3c4f225e4bc93134570" }, "downloads": -1, "filename": "language_tool-0.3.tar.bz2", "has_sig": false, "md5_digest": "92998800322c31ace512c6a3ddc9045d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15035, "upload_time": "2014-11-27T02:54:31", "url": "https://files.pythonhosted.org/packages/d4/17/6379de357f8783f7771c253a18475473ff04d5107e5a1fb27b113f46ae20/language_tool-0.3.tar.bz2" } ], "0.3a1": [], "0.3a2": [], "0.3a3": [], "0.3a4": [], "0.3a5": [] }, "urls": [ { "comment_text": "", "digests": { "md5": "92998800322c31ace512c6a3ddc9045d", "sha256": "c4c956199714b8d587a9fdbb4a801d908a5a67b2f8bca3c4f225e4bc93134570" }, "downloads": -1, "filename": "language_tool-0.3.tar.bz2", "has_sig": false, "md5_digest": "92998800322c31ace512c6a3ddc9045d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15035, "upload_time": "2014-11-27T02:54:31", "url": "https://files.pythonhosted.org/packages/d4/17/6379de357f8783f7771c253a18475473ff04d5107e5a1fb27b113f46ae20/language_tool-0.3.tar.bz2" } ] }