Skip to content
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

Allow extend_words to specify multiple corrections #1041

Open
tobiasdiez opened this issue Jun 18, 2024 · 1 comment
Open

Allow extend_words to specify multiple corrections #1041

tobiasdiez opened this issue Jun 18, 2024 · 1 comment

Comments

@tobiasdiez
Copy link

From reading the source code, I get the impressions that typos can already handle multiple corrections for a wrong word. However, when I try to specify the following config

[default.extend-words]
wrong = ["a", "b"]

I get

TOML parse error at line 1, column 2
  |
1 | [default.extend-words]
  |  ^^^^^^^
invalid type: sequence, expected a string

What's the correct way to specify multiple corrections?

@szepeviktor
Copy link
Contributor

szepeviktor commented Jun 23, 2024

Currently you could only say

[default.extend-words]
wrong = ""
error: `wrong` is disallowed
  --> a:1:1
  |
1 | wrong
  | ^^^^^
  |

and contribute to the monthly Non-critical corrections issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants