anorack icon indicating copy to clipboard operation
anorack copied to clipboard

false positive: a and -> an and /and/

Open pabs3 opened this issue 2 years ago • 2 comments

There is a false positive when a comes before and, which can happen in lists/pairs:

$ echo 'Please download a and b to continue.' | anorack -
<stdin>:1: a and -> an and /and/

Converting a and b to an and b breaks the a, which isn't used as an indefinite article here so should not be changed.

pabs3 avatar Sep 26 '23 22:09 pabs3

It's more complicated than it seems. Sometimes "a and" is a true positive, e.g.:

Create a and node for combining lessThanRow and lessThanCol

(example from nvidia-cudnn-frontend)

jwilk avatar Oct 02 '23 07:10 jwilk

Maybe just detect "a and b" and specifically ignore that, since it will be rare that b would be anything else in this phrase?

-- bye, pabs

https://bonedaddy.net/pabs3/

pabs3 avatar Oct 03 '23 05:10 pabs3