Back to LanguageTool Homepage - Privacy - Imprint

Lead vs. led

In the rule creator I want to make a rule for lead vs led.
My first try:

Wrong words: lead
Sentence with error: he lead the party
Sentence with error corrected: he led the party

The rule works correctly on the first couple of matches then a whole lot of false positives.
If I make ‘led’ the wrong word the rule creator does not like ‘led’ at all.
What I need is a way to have multiple rules for the many meanings of ‘lead’.

Ok. I figured some of it out.
I have to edit my local copy of grammar.xml
In Ubuntu the following command gives two results.
One is in the tarball so the other is the one I want.
yyy@xxx:~$ find . -iname grammar.xml -print0 | grep -FzZ ‘/en/grammar.xml’

yyy@xxx:~$ cd ~/.config/libreoffice/3/user/extensions/tmp/extensions/luenxqsn.tmp_/LanguageTool-2.0.oxt/org/languagetool/rules/en

… $ gedit grammar.xml

Search for lead. And there I find a whole big rule.
I have to figure out how to tweak that rule.
Or maybe tweak the rule for ‘led’.

I’ll be a while with that.