-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to LanguageTool latest version #50
Comments
Thanks for thorough bug report! I'll try to take a look soon. |
I can reproduce the output you get from the Python interpreter. But the LanguageTool GUI gives me output. The output matches what I get from Python. >>> import language_check
>>> tool_language = language_check.LanguageTool('ru-RU')
>>> file_text = u'Sasha Belissimo! Саша Совершенна!'
>>> error_list = tool_language.check(file_text)
>>> print(*error_list, sep='\n\n')
Line 1, column 1, Rule ID: MORFOLOGIK_RULE_RU_RU
Message: Найдена орфографическая ошибка
Sasha Belissimo! Саша Совершенна!
^^^^^
Line 1, column 7, Rule ID: MORFOLOGIK_RULE_RU_RU
Message: Найдена орфографическая ошибка
Sasha Belissimo! Саша Совершенна!
^^^^^^^^^
>>> |
@myint, I remove old LanguageTool → I install 4.0 — newest version at the moment → I don't change settings → I again get expected behavior: Can you update LanguageTool to the newest version? Thanks. |
It doesn't look like even LanguageTool 3.6 is compatible:
I'll rename this issue to mention the upgrade and mark it as an enhancement. diff --git a/download_lt.py b/download_lt.py
index 62344ad..ff66570 100755
--- a/download_lt.py
+++ b/download_lt.py
@@ -28,7 +28,7 @@ FILENAME = 'LanguageTool-{version}.zip'
PACKAGE_PATH = 'language_check'
JAVA_6_COMPATIBLE_VERSION = '2.2'
JAVA_7_COMPATIBLE_VERSION = '3.1'
-LATEST_VERSION = '3.2'
+LATEST_VERSION = '3.6'
JAVA_VERSION_REGEX = re.compile(
r'^(?:java|openjdk) version "(?P<major1>\d+)\.(?P<major2>\d+)\.[^"]+"$',
re.MULTILINE) |
I'm sorry, why 3.6? 4.0 — is the latest stable standalone LanguageTool version. Thanks. |
Okay, I've updated the title. |
Hi! Since this project has been abandoned, I started a new fork over at https://github.com/jxmorris12/language_tool_python. My version supports new versions of Java and LanguageTool. I'm happy to help you with your issue if you raise it over at my repository! Thanks! |
1. Briefly
I don't understand, how I can ignore English words, if I use Russian language by default.
It feature by default, if I run LanguageTool, use:
2. Environment
3. Argumentation
I write texts in Russian, where can be many words from English. Now language-check check English words as errors.
4. Settings
My file
SashaExample.txt
:My file
eric_languagetool.py
:5. Expected behavior
If I run in console:
No errors:
Also, I can't errors, if I can use Sublime Text LanguageTool package.
6. Actual behavior
I run
eric_languagetool.py
forSashaExample.txt
:The same in Interpreter:
English words in Russian texts check as errors.
7. Did not help
I don't find, how I can solve this problem, in:
Thanks.
The text was updated successfully, but these errors were encountered: