The customer has seen the comment on https://dev.languagetool.org/http-server:
“Note that for a server started from a GUI, a user may configure it in the configuration dialog box to disable some unwanted rules. This may be beneficial if the calling program does not allow configuration of the call to the LanguageTool server, and the user wants to enable or disable some checks. However, if the program does disable or enable any rules, then the configuration set by the user will be silently ignored.”
The customer wrote, “We double checked the system and everything seems to be set up properly.”
What are the possible causes of the different results? Do you have any ideas about how the customer can get the same results in the JSON file as in the GUI?
The JSON response is assumed to be used by a client that underlines errors in the text, thus it filters matches that appear at the same position. There’s currently no parameter to change that behavior.
To make the LT spelling warning appear in the JSON result instead of the warning from a rule in the external file, I guess that it is possible to increase the priority of MORFOLOGIK_RULE_EN_US in English.java. (Then, build a new GUI and use that.)
In principle, is that method likely to work? If yes, what is the priority value of the rules that are in an external file?
Now I see what you meant. But priorities don’t work that way, they don’t change the order of results, they define which match is used in clients that can not show two matches for the same location. The GUI always shows all results (and I don’t think we already have a way to define their order).