From b3ccebc7a7d27c5c1d52b1c9849e56d18d3a674c Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Sat, 5 Feb 2022 16:07:09 +0000 Subject: [PATCH 1/3] Start moving Jupyther->Jupyter and add jupyter->Jupiter Fixing comments in #2021 . --- codespell_lib/data/dictionary_code.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codespell_lib/data/dictionary_code.txt b/codespell_lib/data/dictionary_code.txt index 612f9c007a..3a32f2a584 100644 --- a/codespell_lib/data/dictionary_code.txt +++ b/codespell_lib/data/dictionary_code.txt @@ -25,7 +25,7 @@ iam->I am, aim, iff->if isenough->is enough ith->with -Jupyther->Jupyter +jupyter->Jupiter keyserver->key server lateset->latest movei->movie From a2ac73ecb8e01426ac4c294ffba9c4fa8bdf2fdf Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Sat, 5 Feb 2022 16:09:26 +0000 Subject: [PATCH 2/3] Add jupyther->Jupyter to main dictionary, given it's always a typo See comments in #2021 --- codespell_lib/data/dictionary.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/codespell_lib/data/dictionary.txt b/codespell_lib/data/dictionary.txt index 988f4cd4b8..0ba79a3054 100644 --- a/codespell_lib/data/dictionary.txt +++ b/codespell_lib/data/dictionary.txt @@ -18312,8 +18312,8 @@ jpng->png, jpg, jpeg, jscipt->jscript jstu->just jsut->just -Juadaism->Judaism -Juadism->Judaism +juadaism->Judaism +juadism->Judaism judical->judicial judisuary->judiciary juducial->judicial @@ -18322,6 +18322,7 @@ jumo->jump jumoed->jumped jumpimng->jumping jumpt->jumped, jump, +jupyther->Jupyter juristiction->jurisdiction juristictions->jurisdictions jus->just From 8334cd88238e7e609f92e49e91a8311fc8bbc8af Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Sat, 5 Feb 2022 16:27:27 +0000 Subject: [PATCH 3/3] Allow corrections in dictionary.txt to appear as typos in the code dictionary --- codespell_lib/tests/test_dictionary.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codespell_lib/tests/test_dictionary.py b/codespell_lib/tests/test_dictionary.py index 5825419ffd..6d246d35ac 100644 --- a/codespell_lib/tests/test_dictionary.py +++ b/codespell_lib/tests/test_dictionary.py @@ -194,7 +194,9 @@ def test_error_checking_in_aspell(err, rep, err_aspell, rep_aspell, match): # allow some duplicates, like "m-i-n-i-m-i-s-e", or "c-a-l-c-u-l-a-t-a-b-l-e" +# correction in left can appear as typo in right allowed_dups = { + ('dictionary.txt', 'dictionary_code.txt'), ('dictionary.txt', 'dictionary_en-GB_to_en-US.txt'), ('dictionary.txt', 'dictionary_names.txt'), ('dictionary.txt', 'dictionary_rare.txt'),