sapegin / textlint-rule-terminology

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

False positives for mac addresses #39

Closed jokay closed 2 years ago

jokay commented 2 years ago

What version of textlint are you using?

12.0.2

What file type (Markdown, plain text, etc.) are you using?

Markdown

What did you do? Please include the actual source code causing the issue.

| ID | Mac               |
| -- | ------------------|
| 1  | 52:85:1a:31:2a:3d |

What did you expect to happen?

Shouldn't report anything.

What actually happened? Please include the actual, raw output from textlint.

35:53  ✓ error  Incorrect usage of the term: “3d”, use “3D” instead  terminology

I know I could use backticks for the mac address but I don't think this is correct (beside having to update a lot of markdown documents).

Or is there a way to just ignore some terminologies like "3D" ?

Relates https://github.com/textlint/textlint/issues/827.

gmacario commented 2 years ago

Or is there a way to just ignore some terminologies like "3D" ?

Have you already tried configuring the rule as described in https://github.com/sapegin/textlint-rule-terminology#configuration ?

jokay commented 2 years ago

No, but not sure if the detection of :3d is correct from the default?

I would expect to detect 3D only if there is a whitespace before the 3?

jokay commented 2 years ago

Or is there a way to enforce upper-case letters for mac addresses?