Findus23/pyLanguagetool

Field 'enabledOnly' in HTML request

Closed this issue · 1 comments

As LT expects 'true' or 'yes', the field should be set in api.py with

if enabled_only:
    post_parameters["enabledOnly"]  = 'true'

See line 285 in LT's TextChecker.java:

    boolean useEnabledOnly = "yes".equals(parameters.get("enabledOnly")) || "true".equals(parameters.get("enabledOnly"));

Thanks for reporting. You are right, I never really used that option.
If you want to, you can create a PR, otherwise I'll fix it in the next release.