Back to LanguageTool Homepage - Privacy - Imprint

Possible regression in

(Tiago F. Santos) #1

I am new here, so maybe that is a former design decision but ./ does not recognize <url></url> tags.

Probably to workaround this regression Portuguese grammar.xml also no longer has that information. That feature was working perfectly in version 3.5.

Should these type of regressions be fixed by removing contents?

(Daniel Naber) #2

What exactly do you mean? What error do you get or what error don't you get that should be shown?

(Tiago F. Santos) #3

Running XML validation for pt/grammar.xml...
cvc-complex-type.2.4.a: Invalid content was found starting with element 'url'. One of '{example}' is expected. Problem found at line 3562, column 8.
Exception in thread "main" Cannot load or parse '/org/languagetool/rules/pt/grammar.xml'

Line 3562 is the one with the URL and the rule in question:

<!-- Concordance error person - I + Verb -->
<!-- Created by Tiago F. Santos, Portuguese rule, 2016-10-16 -->
<rule id="ERRO_DE_CONCORDNCIA_DO_NMERO_DO_VERBO" name="Erro de concordância do número do verbo">
<token min="0" max="2" postag='CS|RG|RN' postag_regexp='yes'/>
<token postag='VM[CIS][CFIMPS][23]S0|VM[CIS][CFIMPS][123]P0' postag_regexp='yes'>
<exception postag='VM[CIS][CFIMPS]1S0' postag_regexp='yes'></exception></token>
<message>Erro de concordância verbal.</message>
<example correction='Eu passeio'><marker>Eu passeiam</marker> na praia.</example>

(Daniel Naber) #4

The tags must appear in a certain order: <url> must always appear before the <example>s and after the <message>.

(Tiago F. Santos) #5

Ok. Another thing that somehow works on LO and does not in LT. I will change accordingly.
Thank you Daniel.