Hi,
I’m using the Java API to check some texts.
I get the list of available languages with: Languages.get() and I initialize the JLanguageTool object with the language I want from the list to then call the .check(text) function.
This works perfectly for all languages, but it doesn’t work for German or any variation of German (German, German (Germany), German (Austria), German (Swiss), Simple German).
This is the error I get:
nested exception is java.lang.NoClassDefFoundError: org/apache/commons/lang3/RegExUtils] with root cause
java.lang.NoClassDefFoundError: org/apache/commons/lang3/RegExUtils
at org.languagetool.tagging.de.GermanTagger.tag(GermanTagger.java:179)
at org.languagetool.tagging.de.GermanTagger.lookup(GermanTagger.java:116)
at org.languagetool.rules.de.CaseRule.match(CaseRule.java:862)
at org.languagetool.JLanguageTool.checkAnalyzedSentence(JLanguageTool.java:814)
at org.languagetool.JLanguageTool$TextCheckCallable.getOtherRuleMatches(JLanguageTool.java:1255)
at org.languagetool.JLanguageTool$TextCheckCallable.call(JLanguageTool.java:1189)
at org.languagetool.JLanguageTool$TextCheckCallable.call(JLanguageTool.java:1152)
at org.languagetool.JLanguageTool.performCheck(JLanguageTool.java:782)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:726)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:702)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:693)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:652)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:636)
Could you please assist?
Thank you very much!
Marta