- Corrected a bug in
language_tool_python.server._kill_processeswhere processes were not being properly waited for after being killed, potentially leading to zombie processes.
- Added a
check_matching_regionsmethod inlanguage_tool_python.server.LanguageTool.
- Added an optional parameter to
LanguageTool(proxies). - Added an
proxiesattribute toLanguageTool(This attribute is used by theLanguageTool._query_servermethod). - Added new read-only properties to
LanguageTool:urlis_remotehostport
- Edited the documentation of the
LanguageToolclass to improve clarity.
- Corrected a bug when the default locale is POSIX default (C).
- Corrected a bug when closing
LanguageToolinstances (deadlocks). - Corrected a bug when comparing LT versions (e.g., '5.8' vs '5.10').
- Added new possible values in LT config (
trustXForwardForHeader,suggestionsEnabledand lang keys). - Added a warning if you forget to explicitly close a
LanguageToolinstance. - Added online documentation for the package.
- Added logging (and logs) in the package.
- Added raising
exceptions.TimeoutErrorindownload_lt.http_get. - Added
packagingas a dependency. - Moved exception classes to a separate
exceptionsmodule (no more importable fromutils). - Edited raised exceptions in some methods/functions:
- from
AssertionErrortoValueErrorinconfig_file.LanguageToolConfig.__init__ - from
AssertionErrortoexceptions.PathErrorindownload_lt.download_lt - from
AssertionErrortoValueErrorindownload_lt.download_lt - from
AssertionErrortoValueErrorinserver.LanguageTool.__init__ - from
AssertionErrortoValueErrorinutils.kill_process_force
- from
- Edited some camelCase attributes/methods to snake_case:
server.LanguageTool.motherTonguetoserver.LanguageTool.mother_tongueserver.LanguageTool.newSpellingstoserver.LanguageTool.new_spellingsmatch.Match.ruleIdtomatch.Match.rule_idmatch.Match.offsetInContexttomatch.Match.offset_in_contextmatch.Match.errorLengthtomatch.Match.error_lengthmatch.Match.ruleIssueTypetomatch.Match.rule_issue_typematch.Match.matchedTexttomatch.Match.matched_text
- Edited types of some params:
directory_to_extract_toindowload_lt.unzip_filefromstrtoPathdirectoryindownload_lt.download_zipfromstrtoPathdownload_folderinutils.find_existing_language_tool_downloadsfromstrtoPath
- Edited return types of some methods/functions:
- from
strtoPathinutils.get_language_tool_download_path - from
List[str]toList[Path]inutils.find_existing_language_tool_downloads - from
strtoPathinutils.get_language_tool_directory - from
Tuple[str, str]toTuple[Path, Path]inutils.get_jar_info
- from