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

Is it possible to ignore strings of a specific pattern? #194

Open
ryxxastroat opened this issue Dec 15, 2021 · 1 comment
Open

Is it possible to ignore strings of a specific pattern? #194

ryxxastroat opened this issue Dec 15, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@ryxxastroat
Copy link

For example, if I want to ignore all words starting with the letter a, I can in principle add all the combinations in dict.txt, but is there an easier way to achieve this?

@sylvainhalle
Copy link
Owner

Currently, no. The dictionary is passed directly to the LanguageTool library and is not processed by TeXtidote.

It could be implemented, though, by adding an extra check around this location in the loop:

// Exception if spelling mistake and a dictionary is provided

One could extract the offending snippet and check if it matches any of the entries in the dictionary using a regular expression.

@sylvainhalle sylvainhalle added the enhancement New feature or request label Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants