Skip to main content

A tool to detect misspellings

Project description

Build status

This is a Python library and tool to check for misspelled words in source code. It does this by looking for words from a list of common misspellings. The dictionary it uses to do this is based on the Wikipedia list of common misspellings.

The list has been slightly modified to remove some changes that cause a number of false positives. In particular ok->OK was removed (ok is frequently used in perl tests for instance).

Example

To try it out, merely run the following (using the coreutils source tree as an example):

$ git clone git://git.sv.gnu.org/coreutils -b v8.10 coreutils
$ find coreutils -name '*.c' | misspellings -f -
coreutils/src/cat.c[754]: efficency -> "efficiency"
coreutils/src/comm.c[198]: funtion -> "function"
coreutils/src/expr.c[21]: seperate -> "separate"
coreutils/src/pr.c[1417]: accomodate -> "accommodate"
coreutils/src/tac.c[342]: unneccessary -> "unnecessary"
coreutils/src/test.c[91]: supressed -> "suppressed"

Credits

  • Kevin Lyda: Initial shell goo and python version.

  • myint: Better python idioms and style. Mixed case support.

  • Maciej Blizinski: Potential use in opencsw pushed move to python.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

misspellings-1.3.tar.gz (78.0 kB view details)

Uploaded Source

File details

Details for the file misspellings-1.3.tar.gz.

File metadata

  • Download URL: misspellings-1.3.tar.gz
  • Upload date:
  • Size: 78.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for misspellings-1.3.tar.gz
Algorithm Hash digest
SHA256 dc45fa170eb475d3a49db81472d2ff4a97dddb5ebd9bcd997bb29afdeaaa2f16
MD5 013c95270b16ce5b0b76b7e837625e39
BLAKE2b-256 8c73f32270a180b0bba0141b4d799df75a79fa31065013956ffe44c5252edeb3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page