preservim / vim-wordy

Uncover usage problems in your writing
Other
716 stars 23 forks source link

Support for TeX/LaTeX files #29

Open vanabel opened 5 years ago

vanabel commented 5 years ago

I use wordy to improve my scientific writing --- typically, I use the TeX for typesetting mathematical paper, which includes TeX code for mathematical formulas, e.g.

Suppose $a$, $b$ and $c$ are the length of the three sides of a triangle, then 
$$
a+b>c.
$$

where $a$ and so on are called inline formulas, and code with the double dollars are called display formulas, you can find the sample example on the above wiki page.

The problem is that, it seems wordy can't recognize the TeX code as mathematical formula. I learnt from languagetools that we can replace these formula with a single letter X, then the grammar checking works. I hope there will be some ability to process TeX file.


UPDATE

I checked the source code of vim-wordy, it seems has nothing to do with the mathematical formulas, the tex code in my example will mark are and then as weak words, which is defined in the weak.dic, so maybe I should change my problem to a new issue, how to add new rules of dictionary?