Skip to content

Allow users to forbid phrases #3790

Open
@calvinballing

Description

@calvinballing

Is your feature request related to a problem? Please describe.
It would be nice to be able to forbid phrases instead of only words. Say that we are trying to disallow writing note book in favor of notebook.

Describe the solution you'd like
Allow some syntax for forbidding phrases. This could be something like:

In a custom word list:
!note book

In words section of cspell configuration:

"words": [
    "!note book
],

In flagWords section of cspell configuration:
"flagWords": ["note book"]

(Note that this syntax proposal conflicts with the proposal here: #3777)

Describe alternatives you've considered
Could also have a separate concept of phrases if necessary:

In words section of cspell configuration:

"phrases": [
    "!note book
],

New flagPhrases section of cspell configuration:
"flagPhrases": ["note book"]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions