Skip to main content

A tool to detect misspellings

Project description

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.

* http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines

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).

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

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

CREDITS

Kevin Lyda: initial shell goo and python version. https://github.com/lyda
myint: Support for python 3 and some initial support for utf8.
https://github.com/myint
Maciej Blizinski: potential use in opencsw pushed move to python.
https://github.com/automatthias

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.2.tar.gz (76.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for misspellings-1.2.tar.gz
Algorithm Hash digest
SHA256 a5a787e524ce95cf72b45090aa8aa15198a81a402b7585b4a8ef80117b896df8
MD5 6d1230b05bf831db4fa747621d6ebfb8
BLAKE2b-256 0ba47193f33e329ad85618ff2061f6e74640ff3ab96049b9cc7e114823be9369

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