Here it is the topic URL, so that it stays in this thread:
Hello @tiagosantos
I have been unable to disable the lowercase suggestion of months and cardinal places:
Every time I tick the check box it gets automatically unticked when I return to the settings.
Is there something that can be done?
Thanks!
I can not reproduce this issue. Try ticking the category first and see if it works. I believe this will be enough.
However, if it doesnât solve, this has to be a Java implementation related bug, not specific to Portuguese.
In this case, the best way is to make a general bug report in GitHub. It might be useful later.
Tiago!
Could you create a rule for âdemaisâ and âde maisâ?
I will give you an example of the rings translation document:
âOs anĂ©is ajustĂĄveis sĂŁo tamanho Ășnico. Se, apĂłs ajustares a dentição ao limite, os anĂ©is continuarem pequenos demais, remove entĂŁo cuidadosamente a barra junto do lado liso com uma lĂąmina afiada e pule a junta com uma lima para as unhas (vĂȘ o diagrama).â
I tried using âde maisâ and âdemaisâ and I get no suggestion.
I tried the FLIP on-line from Priberam and they too donât make any suggestion.
PS-> You were right regarding the Capitalization rules. I have been able to remove hits in months names and such.
Thanks!
Kind regards,
Think about the logic and tell the logic that separates both expressions. I will implement it.
This may help:
Youâre welcome.
I have been trying to make this rule work but it gives an error when I type: TESTRULES PT
It suggests replacing âmontes deâ with âimensa(s)â and âimenso(s)â
(informal language/slang).
It simply checks for a VERB + MONTES DE + NOUN.
Could you take a look at my code and make a fix here and there and merge it into grammar.xml?
Thanks!
<rulegroup id="MONTES DE" name="Linguagem Informal - imenso(s) - imensa(s)">
<!-- MONTES DE imenso -->
<rule>
<pattern>
<token inflected='yes' postag="VMN0000"></token>
<marker>
<token>montes</token>
<token>de</token>
</marker>
<token postag="NCMS000"></token>
</pattern>
<message>Substitua por <suggestion>imenso</suggestion>.</message>
<example correction="imenso">Perdi <marker>montes de</marker> tempo.</example>
<!-- MONTES DE imensos -->
<rule>
<pattern>
<token inflected='yes' postag="VMN0000"></token>
<marker>
<token>montes</token>
<token>de</token>
</marker>
<token postag="NCMP000"></token>
</pattern>
<message>Substitua por <suggestion>imensos</suggestion>.</message>
<example correction="imensos">Perdi <marker>montes de</marker> contactos.</example>
</rule>
<!-- MONTES DE imensa -->
<rule>
<pattern>
<token inflected='yes' postag="VMN0000"></token>
<marker>
<token>montes</token>
<token>de</token>
</marker>
<token postag="NCFS000"></token>
</pattern>
<message>Substitua por <suggestion>imensa</suggestion>.</message>
<example correction="imensa">Perdi <marker>montes de</marker> gordura.</example>
<!-- MONTES DE imensas -->
<rule>
<pattern>
<token inflected='yes' postag="VMN0000"></token>
<marker>
<token>montes</token>
<token>de</token>
</marker>
<token postag="NCFP000"></token>
</pattern>
<message>Substitua por <suggestion>imensas</suggestion>.</message>
<example correction="imensas">Perdi <marker>montes de</marker> horas.</example>
</rule>
</rulegroup>
Many thanks for this rule, Marco.
The logic is almost correct. The problem is that inflected=âyesâ only applies to the words inside the token parameter, not inside the tag, nor with the postags.
This: <token inflected='yes' postag="VMN0000"></token>
should become <token postag_regexp='yes' postag="V.+"/>
.
I believe this will do it. To improve, you can also generelise the Noun. For example, in the first subrule: <token postag="NCMP000"></token>
use <token postag_regexp='yes' postag="N.MP.+"/>
and it will work with diminutives, aumentatives, superlatives and proper nouns.
By the way, I was able to add one case from the âde maisâ âdemaisâ rule, but I believe that is a rare confusion case. Check git for details.
Test if it works as you expected and, if you wish I will push it after testing to the repo.
<rule id='DEMAIS_DE_MAIS' name="ConfusĂŁo: 'de mais' + 'demais'">
I have just tested it and it seems good
Tiago, could you commit my rule with your improvements?
Thank you very much!
Kind regards,
I added a new mistranslation rule regarding âmedicina tradicional chinesaâ.
Do you know if âchinesaâ should start uppercase?
Thanks!
Great. That section needs more rules.
What about a rule:
âĂ minha mĂŁe e ao meu paiâ -> âAos meus paisâ
?
There could be more ways of writing it (the redundancy part).
That is a great one. There is already a group that addresses non sexist redundancies, but I believe it doesnât address that situation. That rule would be a great complement.
Could you create it, please?
âa minha mĂŁe e o meu paiâ
âa minha mĂŁe e paiâ
âĂ minha mĂŁe e ao meu paiâ
âĂ minha mĂŁe e paiâ
Not on my list of priorities.
Cool, I will do it myself tonight then.
What name should I give to the rule and which category?
Thanks!
Awesome. The other are called âRedundĂącia no neuroâ or something similar. Make the rules, push them and we can improve later if needed.
Done!
Thanks!
âAs culturas Ocidentais, por sua vez, procuram a cura mĂĄgica para tudo.â
âpor sua vezâ it suggests âREFORMULARâ if I well remember.
Could you suggest:
https://www.sinonimos.com.br/por-sua-vez
Thanks!
That information is in this file:
That is a work that really needs to be done, but I never seem to find motivation to do it.
You just have to replace REFORMULAR with any apropriate expression. No coding knowledge required. Just plain text.
Are you going to do it?
Done!
Is this okay:
por sua vez=por seu lado
?
EDIT:
I just noticed that we can add more than one suggestion:
por sua vez=por seu lado|por seu turno|no que lhe diz respeito|no que lhe concerne