-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect warning about "a" versus "an" when using digits as adjective #226
Comments
Inline math is converted to the single character "X" for the purpose of grammar checking. This choice is unfortunate as the grammar checker then expects you to write "an X" and not "a X". I suppose that if we replace "X" by something like "P", it should not trigger this warning. |
"P" would probably reduce the frequency of the issue, but there's still 1, 8, etc. Maybe there's a reasonable way to pull initial digits out of inline math? I.e., But, this rabbit hole might not be worth going down, given that proper grammar for inline math is complicated and Latex doesn't have much semantic information to work with. |
Textidote gives a warning that "an" should be used instead of "a" when preceding math mode.
With the following latex file,
I get
Using
$30\times$
instead of\(30\times\)
gives the same warning, but30\times
(without math mode) doesn't result in any warnings. So, it looks like this is an issue with how math mode is detexified.I've reproduced this with both the 0.9 draft and the 0.8.2 release.
The text was updated successfully, but these errors were encountered: