elijah-potter / harper

The Grammar Checker for Developers
https://writewithharper.com
Apache License 2.0
1.93k stars 35 forks source link

bug: Single letter allowed mid scentence but not before a period #234

Open dvdsk opened 1 month ago

dvdsk commented 1 month ago

input:

// We slice the M bars off such that they are the same height
// as the highest next bar not in M.

behavior:

The letter M at the end of the sentence is highlighted as a spelling mistake. Harper offers to:

expected:

No lint/error from harper since the single letter M also did not trigger a lint/error

elijah-potter commented 1 month ago

Hmmm. That's quite odd. It looks like the initialism parser is having a fit here. I'll see what I can do and push out a release asap.