rhysd / vim-grammarous

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

Support n-gram data #77

Open m3gat0nn4ge opened 5 years ago

m3gat0nn4ge commented 5 years ago

Hi,

I'd like to use the Google n-gram data but that requires passing the '--languagemodel' option, any chance we can get this option supported?

many thanks

http://wiki.languagetool.org/finding-errors-using-n-gram-data

mikebarkmin commented 5 years ago

I have create a simple bash script.

#!/bin/bash

java -jar path/to/languagetool-commandline.jar --languagemodel path/to/language-tool-ngram "$@"

Put it in my bin folder and added

let g:grammarous#languagetool_cmd = 'languagetool'

to my vim config.

I hope this helps.