Hunspell always treats single quote characters (apostrophes) as part of the word. That means that when text uses single quotes for quoting, hunspell flags those as errors. Even a single quote all by itself is considered a (misspelled) word.
% echo "He asked, 'Why can't I quote?'" | hunspell Hunspell 1.3.2 * * & 'Why 3 10: why, whey, whiny * * * & ' 15 29: 's, e, s, i, a, n, r, t, o, l, c, d, u, g, m
Aspell gets this right:
% echo "He asked, 'Why can't I quote?'" | aspell -a @(#) International Ispell Version 3.1.20 (but really Aspell 0.60.7-20110707) * * * * * *
I would prefer to use hunspell, but to direct it to ignore leading and trailing single quote characters, while retaining embedded quote characters such as that in "can't".
How can I do this?