Back to LanguageTool Homepage - Privacy - Imprint

Grammar not checked in context

I changed “advice” to “advise” which changes the complete context and is wrong but languagetool did not detect. Advice is a noun while advise is a verb and usage is completely different.

Please post the complete sentence. Without that, we cannot debug this issue.

Here is the complete sentence

I got some invaluble advise today

The only error detected was

Starting check in English (American)…

1. Line 1, column 12
Message: Possible spelling mistake found (deactivate)
Correction: invaluable
Context: I got some invaluble advise today

Potential problems found: 1 (time: 42ms)
How you can improve LanguageTool

What does the “deactivate” link do?

Once you have fixed that error, the other issue will be found.

It deactivates the rule (the spell checking rule in this case, so it’s usually not a good idea to deactivate it).

I fixed the error
I got some invaluable advise today

and still it didn’t detect the grammar error

Starting check in English (American)…

Potential problems found: 0 (time: 45ms)
How you can improve LanguageTool

Then you’re probably not using the ngram data, see (“Additional homophone rules”)

I’ve installed directly from so it is using the homophone data as per your link.
Then why it is not checking grammar?

It’s only using the ngram data if you have installed that data, not automatically (see

But how is a user supposed to know that ngram data for grammar checking is a separate install?
Even in that comparison table nothing is mentioned about that.
Maybe you should mention a note along with the table that ngram data for grammar checking is a separate install.

The table says “only when installed manually” with a link.

ok. I guess I was looking at the wrong column :frowning:
Where is the documentation of all commands I can use with languagetool?
Can I count the number of words in a sentence using python?
Can I check grammar using python?

I downloaded and installed the ngram data, set the ngram directory path and now when I doubleclick languagetool.jar it does not run at all.
Earlier it would run

Please start it on the command line (java -jar languagetool.jar) to see the error message.

IT’s giving out of memory error even when nothing else is running. Why???

E:\partha\LanguageTool-4.8>java -jar languagetool.jar
Warning: At the moment, your platform (Windows) is not supported by the official XGBoost maven package; ML-based suggestion reordering is disabled.
Exception in thread “AWT-EventQueue-0” java.lang.OutOfMemoryError: Java heap space
at org.apache.lucene.util.fst.FST.(
at org.apache.lucene.util.fst.FST.(
at org.apache.lucene.codecs.blocktree.FieldReader.(
at org.apache.lucene.codecs.blocktree.BlockTreeTermsReader.(
at org.apache.lucene.codecs.lucene50.Lucene50PostingsFormat.fieldsProducer(
at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.(
at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(
at org.apache.lucene.index.SegmentCoreReaders.(
at org.apache.lucene.index.SegmentReader.(
at org.apache.lucene.index.StandardDirectoryReader$1.doBody(
at org.apache.lucene.index.StandardDirectoryReader$1.doBody(
at org.apache.lucene.index.SegmentInfos$
at org.languagetool.languagemodel.LuceneSingleIndexLanguageModel$LuceneSearcher.(
at org.languagetool.languagemodel.LuceneSingleIndexLanguageModel$LuceneSearcher.(
at org.languagetool.languagemodel.LuceneSingleIndexLanguageModel.getCachedLuceneSearcher(
at org.languagetool.languagemodel.LuceneSingleIndexLanguageModel.addIndex(
at org.languagetool.languagemodel.LuceneSingleIndexLanguageModel.(
at org.languagetool.languagemodel.LuceneLanguageModel.(
at org.languagetool.Language.initLanguageModel(
at org.languagetool.language.English.getLanguageModel(
at org.languagetool.JLanguageTool.activateLanguageModelRules(
at org.languagetool.gui.LanguageToolSupport.activateLanguageModelRules(
at org.languagetool.gui.LanguageToolSupport.reloadLanguageTool(
at org.languagetool.gui.LanguageToolSupport.init(
at org.languagetool.gui.LanguageToolSupport.(
at org.languagetool.gui.Main.createGUI(
at org.languagetool.gui.Main.access$1700(
at org.languagetool.gui.Main$
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

Use e.g. java -Xmx2000M -jar languagetool.jar to increase memory for Java.

It gives error

E:\partha\LanguageTool-4.8>java -Xmx2000M -jar languagetool.jar
Error occurred during initialization of VM
Could not reserve enough space for 2048000KB object heap