Dominique Pelle wrote:

> Attached patch fixes grammatical errors in the Vim help files.
> 
> I found those errors using LanguageTool (http://www.languagetool.org/)
> which can be downloaded with...
> $ cvs -z3 
> -d:pserver:[email protected]:/cvsroot/languagetool
> co -P JLanguageTool
> 
> This is how I ran it on the Vim help files with options to discard rules
> which gave frequent false positives:
> 
> $ cd vim/runtime/doc
> $ cat *txt | perl -pe 's/\n/ /; s/\. /.\n/g; s/[ \t]+/ /g; s/^ *[-o]?
> +//' | java -jar /home/pel/sb/JLanguageTool/dist/LanguageTool.jar -d
> EN_QUOTES,WHITESPACE_RULE,EN_UNPAIRED_BRACKETS,ARTICLE_MISSING,COMMA_PARENTHESIS_WHITESPACE,UPPERCASE_SENTENCE_START,WORD_REPEAT_RULE,DOUBLE_PUNCTUATION,EN_A_VS_AN,THREE_NN,PHRASE_REPETITION,THIS_NNS
> ...
> 323.) Line 31804, column 16, Rule ID: MASS_AGREEMENT[2]
> Message: Possible agreement error - use third-person verb forms for
> singular and mass nouns: 'makes'.
> Suggestion: makes
> ...this filetype will be opened. This construct make sure the function
> is only defined once: > :i...
>                                                 ^^^^
> ...

Thanks, I'll include the patch.

> Although it gives many false positives when checking Vim help files,
> it's still useful. Perhaps someone better than I am in vim script
> could come up with a useful Vim plugin to integrate languagetool
> in Vim?

The Vim spell checker is purely word based.  A grammar checker would be
very helpful.

-- 
>From "know your smileys":
 :-H    Is missing teeth

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to