Skip to content

Fix typos, via a Levenshtein-style corrector #30341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 19, 2019
Merged

Fix typos, via a Levenshtein-style corrector #30341

merged 1 commit into from
Dec 19, 2019

Conversation

bwignall
Copy link
Contributor

Should be non-semantic.

@jbrockmendel
Copy link
Member

LGTM

@topper-123 topper-123 added this to the 1.0 milestone Dec 19, 2019
@topper-123 topper-123 merged commit 70a083f into pandas-dev:master Dec 19, 2019
@topper-123
Copy link
Contributor

Thanks @bwignall. Mind sharing how you do this? I’m familiar with Levenstein, but do you have a program that scans source codes for spelling errors?

@bwignall
Copy link
Contributor Author

Certainly, @topper-123 : I use https://github.com/bwignall/typochecker . It's a basic script (that's already in need of some refactoring), but the first version used https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines to find likely typos, and it has bootstrapped the list of likely typos by looking at a few heuristics (such as a subset of Levenshtein edits) that have been run against some non-trivial codebases, including pandas.

proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
@topper-123
Copy link
Contributor

Nice thanks. Can be nice to keep in mind when cleaning code bases.

AlexKirko pushed a commit to AlexKirko/pandas that referenced this pull request Dec 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants