Skip to content

Disable automatic fixes for words in the rare dictionary #3651

@DimitriPapadopoulos

Description

@DimitriPapadopoulos

See #3631 (comment).

From the README:

  1. Entry with one word, but with automatic fix disabled:

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

Note that there isn't a comma at the end of the line. The last argument is treated as the reason why a suggestion cannot be automatically applied.

Perhaps we should disable automatic fixes by adding a comment to all or part of the words in the rare dictionary. Example:

$ cat DICTIONARY.txt 
lien->line, actually a word in the OED and SCOWL (And Friends)
$ 
$ cat test.txt 
lien
$ 
$ codespell -w -D DICTIONARY.txt test.txt 
test.txt:1: lien ==> line  | actually a word in the oed and scowl (and friends)
$ 
$ codespell -D DICTIONARY.txt test.txt 
test.txt:1: lien ==> line  | actually a word in the oed and scowl (and friends)
$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions