Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

check code for common misspellings

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 data dict: Add parallell->parallel March 29, 2014
Octocat-spinner-32 example Remove reason from suggested fixes January 29, 2011
Octocat-spinner-32 COPYING Add license March 22, 2011
Octocat-spinner-32 Makefile Add a test suite December 26, 2013
Octocat-spinner-32 README Add repository and tarball location to README April 07, 2014
Octocat-spinner-32 TODO TODO: remove unneeded task September 29, 2011
Octocat-spinner-32 codespell.py Update the handling of colour output for more use-cases. March 30, 2014
README
codespell
*********

Fix common misspellings in text files. It's designed primarily for checking
misspelled words in source code, but it can be used with other files as well.

Information
===========

Mailing list:
	codespell@googlegroups.com

Repository:
	git@github.com:lucasdemarchi/codespell.git
	https://github.com/lucasdemarchi/codespell.git

Releases:
	http://politreco.com/pub/codespell/

Usage
=====

Check usage with codespell -h. There are a few command line options. We ship
a dictionary that is an improved version of the one available at
http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines
after applying them in projects like Linux Kernel, EFL, oFono among others.
You can provide your own version of the directory, but patches for
new/different entries are very welcome.

Dictionary format
=================

The format of the dictionary was influenced by the one it originally came from,
i.e. from wikipedia. The difference is how multiple options are treated and
that the last argument is the reason why a certain entry could not be applied
directly, but instead be manually inspected. E.g:

1) Simple entry: one wrong word / one suggestion

calulated->calculated

2) Entry with more than one suggested fix

fiel->feel, field, file, phial,

Note the last comma! You need to use it, otherwise the last suggestion will be
discarded. When there are more than one suggestion, automatically fix is not
possible and the best we can do is to give the user the file and line where the
error occurred as well as the suggestions

3) Entry with one word, but with automatically fix disabled

clas->class, disabled because of name clash in c++

Note that there isn't a comma in the end of the line. The last argument is
treated as the reason why a suggestion can not be automatically applied.
Something went wrong with that request. Please try again.