{"id":13660700,"url":"https://github.com/myint/language-check","last_synced_at":"2025-04-04T09:07:02.067Z","repository":{"id":47611661,"uuid":"10020305","full_name":"myint/language-check","owner":"myint","description":"Python wrapper for LanguageTool grammar checker","archived":false,"fork":false,"pushed_at":"2021-08-22T01:45:17.000Z","size":615,"stargazers_count":328,"open_issues_count":37,"forks_count":101,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-28T08:05:00.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/language-check","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/myint.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-12T22:05:43.000Z","updated_at":"2025-01-20T08:49:00.000Z","dependencies_parsed_at":"2022-09-10T09:25:44.512Z","dependency_job_id":null,"html_url":"https://github.com/myint/language-check","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myint%2Flanguage-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myint%2Flanguage-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myint%2Flanguage-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myint%2Flanguage-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myint","download_url":"https://codeload.github.com/myint/language-check/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247149500,"owners_count":20891954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T05:01:24.737Z","updated_at":"2025-04-04T09:07:02.046Z","avatar_url":"https://github.com/myint.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"language-check\n==============\n\nPython wrapper for LanguageTool.\n\n.. image:: https://travis-ci.org/myint/language-check.svg?branch=master\n    :target: https://travis-ci.org/myint/language-check\n    :alt: Build status\n\nThis is a fork of\nhttps://bitbucket.org/spirit/language_tool that produces more easily parsable\nresults from the command-line.\n\nExample usage\n-------------\n\nFrom the interpreter:\n\n\u003e\u003e\u003e import language_check\n\u003e\u003e\u003e tool = language_check.LanguageTool('en-US')\n\u003e\u003e\u003e text = u'A sentence with a error in the Hitchhiker’s Guide tot he Galaxy'\n\u003e\u003e\u003e matches = tool.check(text)\n\u003e\u003e\u003e len(matches)\n2\n\nCheck out some ``Match`` object attributes:\n\n\u003e\u003e\u003e matches[0].fromy, matches[0].fromx\n(0, 16)\n\u003e\u003e\u003e matches[0].ruleId, matches[0].replacements\n('EN_A_VS_AN', ['an'])\n\u003e\u003e\u003e matches[1].fromy, matches[1].fromx\n(0, 50)\n\u003e\u003e\u003e matches[1].ruleId, matches[1].replacements\n('TOT_HE', ['to the'])\n\nPrint a ``Match`` object:\n\n\u003e\u003e\u003e print(matches[1])\nLine 1, column 51, Rule ID: TOT_HE[1]\nMessage: Did you mean 'to the'?\nSuggestion: to the\n...\n\nAutomatically apply suggestions to the text:\n\n\u003e\u003e\u003e language_check.correct(text, matches)\n'A sentence with an error in the Hitchhiker’s Guide to the Galaxy'\n\nFrom the command line::\n\n    $ echo 'This are bad.' \u003e example.txt\n\n    $ language-check example.txt\n    example.txt:1:1: THIS_NNS[3]: Did you mean 'these'?\n\n\nInstallation\n------------\n\nTo install via pip::\n\n    $ pip install --upgrade language-check\n\nIf you are using Python 2, you'll need to install 3to2 beforehand::\n\n    $ pip install --upgrade 3to2\n\nTo overwrite the host part of URL that is used to download LanguageTool-{version}.zip::\n\n    - SET LANGUAGE_CHECK_DOWNLOAD_HOST = [alternate URL]\n\n\nPrerequisites\n-------------\n\n- `Python 3.3+ \u003chttps://www.python.org\u003e`_ (or 2.7)\n- `lib3to2 \u003chttps://bitbucket.org/amentajo/lib3to2\u003e`_\n  (if installing for Python 2)\n- `LanguageTool \u003chttps://www.languagetool.org\u003e`_ (Java 6.0+)\n\n\nThe installation process should take care of downloading LanguageTool (it may\ntake a few minutes). Otherwise, you can manually download\n`LanguageTool-stable.zip\n\u003chttps://www.languagetool.org/download/LanguageTool-stable.zip\u003e`_ and unzip it\ninto where the ``language_check`` package resides.\n\nVim plugin\n----------\n\nTo use language-check in Vim, install Syntastic_ and use the following\nsettings:\n\n.. code-block:: vim\n\n    let g:syntastic_text_checkers = ['language_check']\n    let g:syntastic_text_language_check_args = '--language=en-US'\n\nCustomize your language as appropriate.\n\n.. _Syntastic: https://github.com/scrooloose/syntastic\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyint%2Flanguage-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyint%2Flanguage-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyint%2Flanguage-check/lists"}