{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development", "Topic :: Text Processing :: Linguistic", "Topic :: Utilities" ], "description": "scspell\n=======\n\n.. image:: https://travis-ci.org/myint/scspell.svg?branch=master\n :target: https://travis-ci.org/myint/scspell\n :alt: Build status\n\n**scspell** is a spell checker for source code. This is an unofficial fork (of\nhttps://launchpad.net/scspell) that runs on both Python 2 and 3.\n\n**scspell** does not try to be particularly smart--rather, it does the simplest\nthing that can possibly work:\n\n 1. All alphanumeric strings (strings of letters, numbers, and\n underscores) are spell-checked tokens.\n 2. Each token is split into one or more subtokens. Underscores and digits\n always divide tokens, and capital letters will begin new subtokens. In\n other words, ``some_variable`` and ``someVariable`` will both generate\n the subtoken list {``some``, ``variable``}.\n 3. All subtokens longer than three characters are matched against a set of\n dictionaries, and a match failure prompts the user for action. When\n matching against the included English dictionary, *prefix matching* is\n employed; this choice permits the use of truncated words like ``dict``\n as valid subtokens.\n\nWhen applied to code written in most popular programming languages while using\ntypical naming conventions, this algorithm will usually catch many errors\nwithout an annoying false positive rate.\n\nIn an effort to catch more spelling errors, **scspell** is able to check each\nfile against a set of dictionary words selected *specifically for that file*. Up\nto three different sub-dictionaries may be searched for any given file:\n\n 1. A natural language dictionary. (**scspell** provides an American\n English dictionary as the default.)\n 2. A programming language-specific dictionary, intended to contain\n oddly-spelled keywords and APIs associated with that language.\n (**scspell** provides small default dictionaries for a number of popular\n programming languages.)\n 3. A file-specific dictionary, intended to contain uncommon strings which\n are not likely to be found in more than a handful of unique files.\n\nUsage\n-----\n\nTo begin the spell checker, run ::\n\n $ scspell source_file1 source_file2 ...\n\nFor each spell check failure, you will see output much like this::\n\n filename.c:27: Unmatched 'someMispeldVaraible' -> {mispeld, varaible}\n\nIn other words, the token \"``someMispeldVaraible``\" was found on line 27\nof ``filename.c``, and it contains subtokens \"``mispeld``\" and\n\"``varaible``\" which both failed the spell-checking algorithm. You will\nbe prompted for an action to take:\n\n (i)gnore\n Skip to the next unmatched token, without taking any action.\n\n (I)gnore all\n Skip over this token every time it is encountered, for the\n remainder of this spell check session.\n\n (r)eplace\n Enter some text to use as a replacement for this token, and replace\n only the token at this point in the file.\n\n (R)eplace all\n Enter some text to use as a replacement for this token, and replace\n every occurrence of the token until the end of the current file.\n\n (a)dd to dictionary\n Add one or more tokens to one of the dictionaries (see below).\n\n show (c)ontext\n Print out some lines of context surrounding the unmatched token.\n\nIf you accidentally select a replacement operation, enter an empty\nstring to cancel.\n\nIf you select the ``(a)dd to dictionary`` option, then you will be\nprompted with the following options for every subtoken:\n\n (b)ack\n Return to the previous menu, without taking any action.\n\n (i)gnore\n Skip to the next subtoken, without taking any action.\n\n add to (p)rogramming language dictionary\n Add this subtoken to the dictionary associated with the\n programming language of the current file. **scspell** uses the\n file extension to determine the language, so you will only\n see this option for files which have an extension.\n\n add to (f)ile-specific dictionary\n Add this subtoken to the dictionary associated with the\n current file. You will see this option only for files which\n have such an embedded ID or which have an entry in the file ID\n mapping. See `Creating File IDs`_ for details.\n\n add to (N)ew file-specific dictionary\n Create a new file ID for the current file, record the new\n file ID in the file ID mapping, and add this subtoken to a new\n file-specific dictionary associated with that file ID. You will\n see this option only for files which have neither an embedded ID nor\n an entry in the file ID mapping, and only if the ``--relative-to``\n\toption is given. See `Creating File IDs`_ for details.\n\n add to (n)atural language dictionary\n Add this subtoken to the natural language dictionary.\n\nIf scspell finds no unknown tokens, it exits with exit status 0. If\nthere were unknown tokens, it exits with exit status 1. If it\nterminates in response to a (handled) signal such as a SIGINT from ^C,\nit exits with exit status 2.\n\n\nSpell-checking Options\n----------------------\n\n--report-only\\ \n This option causes **scspell** to report to stderr a report of the\n subtokens that it considers to be in error, instead of offering the\n interactive menu described above. For each subtoken, the report\n includes the filename, line number, and full token. **scspell** will\n exit with an exit code of 1 if any errors are found, or 0 if the run\n was clean.\n\n The format of the reported errors is different than the interactive\n mode reports them. With ``--report-only``, the above one would appear\n like this::\n\n filename.c:27: 'mispeld', 'varaible' were not found in the dictionary (from token 'someMispeldVaraible')\n\n\n--no-c-escapes\\ \n By default, **scspell** treats files as if they contain C-style\n character escapes. That is, given ``printf(\"Hello\\nworld.\")``, it will\n consider the tokens \"``hello``\" and \"``world``\", not \"``nworld``\".\n\n The ``--no-c-escapes`` option causes **scspell** to not treat ``\\`` as a\n special character, for e.g. LaTeX files where you might write\n ``\\Alpha\\beta\\gamma\\delta``. Without this option, **scspell** would\n see the tokens \"``lpha``\", \"``eta``\", \"``amma``\", and \"``elta``\".\n\n\nCreating File IDs\n-----------------\n\nIf you would like **scspell** to be able to uniquely identify a file,\nthus enabling the creation of a file-specific dictionary, then\n**scspell** must be able to find a file ID to identify both the file\nan the file-specific dictionary. There are two ways **scspell** can\nfind the file ID:\n\n1. The file ID may be embedded directly in the file, using a string of\n the following form::\n\n scspell-id: \n\n2. An entry in the file ID mapping file ties a filename to a file ID.\n\nThe unique ID must consist only of letters, numbers, underscores, and dashes.\n**scspell** can generate suitable unique ID strings using the ``--gen-id`` option::\n\n $ scspell --gen-id\n scspell-id: e497803c-523a-11de-ae42-0017f2ee0f37\n\n(Most likely you will want to place a file's unique ID inside a source code comment.)\n\nDuring interactive use, the ``(a)dd to dictionary`` -> ``add to (N)ew\nfile-specific dictionary`` option will create a new File ID for the\ncurrent file, and add it to the file ID mapping file.\n\n\n--relative-to RELATIVE_TO\\ \n The filenames stored in the file ID mapping are relative paths. This\n option specifies what they're relative to. If this option is not\n specified, the file ID mapping will not be consulted, and the ``add to (N)ew\n file-specific dictionary`` option will not be offered.\n\n\n\nManaging File IDs\n-----------------\n\nThese options direct **scspell** to manipulate the file ID mapping.\n(These can all be accomplished by editing the file ID mapping\nmanually). These have no effect on file IDs embedded in files.\n\n--rename-file FROM_FILE TO_FILE\n Changes the filename that a File ID maps to. After renaming a file\n that has a file-specific dictionary and an entry in the file ID\n mapping, you can use this option to have the entry \"follow\" the file.\n\n--delete-files\\ \n Remove filenames from the file ID mapping. If it was the only\n filename for a given File ID, removes the File ID from the mapping and\n its wordlist from the dictionary.\n\n--merge-file-ids FROM_ID TO_ID\n Combines the file-specific dictionaries referenced by the two File\n IDs. All words from FROM_IDs list are moved to TO_IDs. The FROM_ID\n File ID is removed from the mapping, and any files using it are\n changed to use TO_ID. Either FROM_ID or TO_ID may be given as a filename\n instead, in which case that file's File ID is used for that parameter.\n\n\nSharing a Dictionary\n--------------------\n\nA team of developers working on the same source tree may wish to share a common\ndictionary. You can permanently set the location of a shared dictionary by\nexecuting ::\n\n $ scspell --set-dictionary=/path/to/dictionary_file.txt\n\nThe dictionary is formatted as a simple newline-separated list of words, so it\ncan easily be managed by a version control system if desired.\n\nThe current dictionary can be saved to a file by executing ::\n\n $ scspell --export-dictionary=/path/to/output_file.txt\n\nYou can also override the dictionary location for a single spell check session,\nby using the ``--override-dictionary`` option::\n\n $ scspell --override-dictionary=/path/to/dictionary_file.txt source_file1 ...\n\n--base-dict BASE_DICT\\\n A *base dictionary* is consulted for its words, but is not modified\n at runtime. By using\n\n $ scspell --base-dict ~/.dict --override-dictionary proj/.dict source...\n\n words added at runtime will be added to ``proj/.dict``, and\n ``~/.dict`` will be left alone. This way ``proj/.dict`` may be\n limited only to the words added for ``proj/``. This may be more\n convenient when ``proj/.dict`` is committed to source control and\n shared by many users.\n\n--use-builtin-base-dict\\\n Use the dictionary file shipped with scspell as a base dictionary.\n\n--filter-out-base-dicts\\\n Read the dictionary specified by the normal dictionary selection\n options, called the ``project dict`` here. Read the base\n dictionaries specified by the base-dict options. Remove from the\n project dict all the words from the base dicts, and write the\n project dict back out.\n\n This may be useful when a project dict has been generated with an\n older version of **scspell** that did not support base dicts.\n\n\nInstallation\n------------\n\nInstall **scspell** via pip::\n\n $ pip install scspell3k\n\nAlternatively, download and unpack the source archive, switch to the\narchive root directory, and run the installation script::\n\n $ python setup.py install\n\nOn a UNIX-like system, you may need to use ``sudo`` if installing to a\ndirectory that requires root privileges::\n\n $ sudo python setup.py install\n\nLicense\n-------\n\n**scspell** is Free Software, licensed under Version 2 of the GNU General\nPublic License; see ``COPYING.txt`` for details.\n\nThe English dictionary distributed with scspell is derived from the\n`SCOWL word lists `_ . See\n``SCOWL-LICENSE.txt`` for the myriad licenses that apply to that dictionary.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/myint/scspell", "keywords": "", "license": "GPL 2", "maintainer": "", "maintainer_email": "", "name": "scspell3k", "package_url": "https://pypi.org/project/scspell3k/", "platform": "any", "project_url": "https://pypi.org/project/scspell3k/", "project_urls": { "Homepage": "https://github.com/myint/scspell" }, "release_url": "https://pypi.org/project/scspell3k/2.2/", "requires_dist": null, "requires_python": "", "summary": "A conservative interactive spell checker for source code.", "version": "2.2" }, "last_serial": 4714305, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "b747c2d1c7c35822fe705d1f945ecafd", "sha256": "35725696a2bf3732a5a0f5d6fc4383983213247a4bcd4d2c6ebe72a1d3a40f6c" }, "downloads": -1, "filename": "scspell3k-0.2.tar.gz", "has_sig": false, "md5_digest": "b747c2d1c7c35822fe705d1f945ecafd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 291891, "upload_time": "2015-01-24T18:01:24", "url": "https://files.pythonhosted.org/packages/46/6f/1710006c27925186bfcc9d8a01743d36e2f49dd4390d93151406e0b7291e/scspell3k-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "1722519f45b4ea394c073f5aa5f0e6da", "sha256": "398e0ddd7e07c3ff06299b83a9880ad8330221365e88230b6d3319dd6b45165c" }, "downloads": -1, "filename": "scspell3k-0.2.1.tar.gz", "has_sig": false, "md5_digest": "1722519f45b4ea394c073f5aa5f0e6da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 284359, "upload_time": "2015-06-06T14:06:14", "url": "https://files.pythonhosted.org/packages/70/db/d2864df57b8911ae1718649b0d695b3708d0fcb88cf7267b38c1ebea32fd/scspell3k-0.2.1.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "591aca296d4ea652b665cedf8c3d08f9", "sha256": "da5a1c1dbb19055b55387a1042596c13aa74ab1ef282c1998ab8d782480d7978" }, "downloads": -1, "filename": "scspell3k-1.0.tar.gz", "has_sig": false, "md5_digest": "591aca296d4ea652b665cedf8c3d08f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 261547, "upload_time": "2015-06-07T13:03:13", "url": "https://files.pythonhosted.org/packages/d2/cd/7c4697863e5e81154f1adaeda80f7362c67ac3f0cd049b49dfc07a9c3243/scspell3k-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "82a87e9c452613ae694ef5458487b3ff", "sha256": "8380ff817600419d0ee278bdcb9ae76a4fa0285ea24c39109ae050ee197c9fc4" }, "downloads": -1, "filename": "scspell3k-1.0.1.tar.gz", "has_sig": false, "md5_digest": "82a87e9c452613ae694ef5458487b3ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 261788, "upload_time": "2015-06-22T12:57:19", "url": "https://files.pythonhosted.org/packages/1a/01/7264cd4ffe30f1f4836ff95a4c60ef0a4a6ff121a1eaaeef265329806a1d/scspell3k-1.0.1.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "2c33194e2f8a043fb9294f29b8392f15", "sha256": "bc5ba4d06efe7986e0b1b780167007cd7e96a6356c70e8c76fddef62e49b7e2b" }, "downloads": -1, "filename": "scspell3k-1.1.tar.gz", "has_sig": false, "md5_digest": "2c33194e2f8a043fb9294f29b8392f15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 262000, "upload_time": "2015-09-08T15:38:17", "url": "https://files.pythonhosted.org/packages/27/cb/8d29d54ea5cb21dd67d08835feec3788fe46d325dcf4fa0bc0264f1fca51/scspell3k-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "eb0015bfdda073c65a6b69818fbcac45", "sha256": "797619b82b2575d4d249b91fd0318a9a3987c3ff8a74acee91babc3921213c69" }, "downloads": -1, "filename": "scspell3k-1.2.tar.gz", "has_sig": false, "md5_digest": "eb0015bfdda073c65a6b69818fbcac45", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 258822, "upload_time": "2016-05-15T02:40:38", "url": "https://files.pythonhosted.org/packages/d6/b9/ebb28761f16bbe40d6fdad51dd5548275f6273bcbbdc9a1589632099fd44/scspell3k-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "02bd7612ebbc422ba2f47efb522f65be", "sha256": "dcecb5d6f8bf0e34ab4eb42531960755f474c8e0c3cf8cd9a63079b7b06a5c54" }, "downloads": -1, "filename": "scspell3k-1.3.tar.gz", "has_sig": false, "md5_digest": "02bd7612ebbc422ba2f47efb522f65be", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 258966, "upload_time": "2016-05-18T14:21:16", "url": "https://files.pythonhosted.org/packages/7f/9f/982f3e82c96145e60a75c6a3e1a4cd4026e4d4a4ab41b35358d971586040/scspell3k-1.3.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "f5d3b5cabc436179faf7342b3a76ed76", "sha256": "b893826907bd0ba2bbba294a9c27d48fb7660a54ca47913b43c3f394bf4c99b3" }, "downloads": -1, "filename": "scspell3k-2.0.tar.gz", "has_sig": false, "md5_digest": "f5d3b5cabc436179faf7342b3a76ed76", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 266503, "upload_time": "2016-07-17T14:38:21", "url": "https://files.pythonhosted.org/packages/67/84/939b05b9d28cd4a25c972f8ff606c63cdf9132c4623c4a53a7a826cd3c1c/scspell3k-2.0.tar.gz" } ], "2.1": [ { "comment_text": "", "digests": { "md5": "f03ad0aab9c8dfce17adc4b0aabe766e", "sha256": "a9899a8ad22a1d31a023475fc9a974fbc710bd9e92799606e25eac3d2338b709" }, "downloads": -1, "filename": "scspell3k-2.1.tar.gz", "has_sig": false, "md5_digest": "f03ad0aab9c8dfce17adc4b0aabe766e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 272336, "upload_time": "2017-01-14T16:48:20", "url": "https://files.pythonhosted.org/packages/fe/0a/38e98cce6114542c7b2ef887767c2f9a0bff031a3f21e14927be1fbc2203/scspell3k-2.1.tar.gz" } ], "2.2": [ { "comment_text": "", "digests": { "md5": "57caf2c8144257f0facf4563ee08ef06", "sha256": "c7ee9dd5f9707d08885259246e20cf6bc73a1ac7876713ab7d1d3ce8cc6dcd09" }, "downloads": -1, "filename": "scspell3k-2.2.tar.gz", "has_sig": false, "md5_digest": "57caf2c8144257f0facf4563ee08ef06", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 272697, "upload_time": "2019-01-19T01:32:21", "url": "https://files.pythonhosted.org/packages/1f/7c/bcfe50bfdf0180363f3388d68820a58d84efee58d632366586c6dad7737c/scspell3k-2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "57caf2c8144257f0facf4563ee08ef06", "sha256": "c7ee9dd5f9707d08885259246e20cf6bc73a1ac7876713ab7d1d3ce8cc6dcd09" }, "downloads": -1, "filename": "scspell3k-2.2.tar.gz", "has_sig": false, "md5_digest": "57caf2c8144257f0facf4563ee08ef06", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 272697, "upload_time": "2019-01-19T01:32:21", "url": "https://files.pythonhosted.org/packages/1f/7c/bcfe50bfdf0180363f3388d68820a58d84efee58d632366586c6dad7737c/scspell3k-2.2.tar.gz" } ] }