drahnr / cargo-spellcheck

Checks all your documentation for spelling and grammar mistakes with hunspell and a nlprule based checker for grammar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Abbreviated forms incorrectly split and flagged

drahnr opened this issue · comments

Describe the bug

Abbreviated forms of is not / isn't is incorrectly split due to segmentation.

To Reproduce

Steps to reproduce the behaviour:

  1. A file containing isn't
  2. Run cargo spellcheck ...
  3. See it being a) incorrectly flagged and b) incorrectly split

Expected behavior

Accept as is

Screenshots

error: spellcheck(Hunspell)
    --> /media/supersonic1t/projects/parity/polkadot/node/overseer/src/lib.rs:178
     |
 178 |  Note that due the fact the overseer doesn't store the whole active-leaves set, only deltas,
     |                                      ^^^^^
     | - does or does n
     |
     |   Possible spelling mistake found.

error: spellcheck(Hunspell)
    --> /media/supersonic1t/projects/parity/polkadot/node/overseer/src/lib.rs:739
     |
 739 |  Handles a header activation. If the header's state doesn't support the parachains API,
     |                                                     ^^^^^
     | - does or does n
     |
     |   Possible spelling mistake found.

Please complete the following information:

  • System: Fedora
  • Obtained: cargo
  • Version: 0.8.5

Additional context