-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
An vs a with mathematics #92
Comments
This is a known issue, see first point of https://valentjn.github.io/vscode-ltex/docs/contributing-code-issues.html#known-issues-and-limitations. It's not possible to solve this without fully parsing LATEX with proper macro expansion etc. Even then, it would still be hard to decide (e.g., whether a This is exactly what LTEX's |
I agree that is not possible to have a solution that works in all cases without a complete parsing of Latex. But it should be fairly straightforward to support the most common single-letter expressions like Maybe its possible to use the dummy feature and replace these expressions by some word having the same sound as the single-letter. For example, use "antic" in place of "n", so that LangugeTools sees |
Fair enough, I thought this was about solving this in general. Thanks for the request. |
Thanks a lot for the quick implementation! Much appreciated. |
Fix released in 6.3.0. |
Is your feature request related to a problem? Please describe.
When using mathematical expressions, the an-vs-a check leads to suboptimal results. For example,
results in a warning (although it is grammatically correct as$n$ is pronounced "an").
Describe the solution you'd like
No warning message in the above example, but a warning if "a" is used instead.
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: