rhysd / vim-grammarous

A powerful grammar checker for Vim using LanguageTool.
1.1k stars 41 forks source link

Wrong highlight in Russian language #61

Open evmorov opened 6 years ago

evmorov commented 6 years ago

Wrong highlight in Russian language

Steps:

  1. Write
Как думаешь, нрмально ли это?
  1. Execute
:GrammarousCheck --lang=ru --preview

Actual result:

аешь is highlighted that is wrong. But the correction word in Preview window is "нормально" that is right.

Expected result:

нрмально is highlighted as LanguageTool itself suggests

rhysd commented 6 years ago

Thank you for the report. I think offset in output from LanguageTool is a byte offset and we need to consider the conversion between byte size and character size. My mother language is Japanese and it has also the same bug, I think. I'll try to reproduce but it may be hard to support.