sapegin / textlint-rule-terminology

Textlint rule to check correct terms spelling
MIT License
50 stars 17 forks source link

Exclude string with multiple words #21

Closed huguestennier closed 1 year ago

huguestennier commented 4 years ago

Maybe I'm doing this wrong, but is there a way to exclude a whole string?

For example, I want to replace Front-end with => frontend. That works

But I want to exclude New Front-End Adventures because that's how the author titled the workshop.

Is there a way to do that? I tried both skip and exclude

sapegin commented 4 years ago

exclude exclude terms from the built-in dictionary, and skip skips TextLint node types, like blockquotes, etc.

The only way to somehow achieve what you're trying to do is to disable the rule for the entire paragraph:

https://github.com/sapegin/textlint-rule-terminology#tips--tricks

sapegin commented 4 years ago

Having a special feature for that would be nice though — feel free to send a pull request 👾

mghill commented 3 years ago

We are using https://github.com/textlint/textlint-filter-rule-allowlist for this purpose, FYI as it lets you omit certain words or phrases from all textlint rules