Skip to content

Commit

Permalink
[pt] Move EMAIL_SEM_HIFEN to style
Browse files Browse the repository at this point in the history
 - remove '_ORTHOGRAPHY' suffix to allow users more control;

 - add 'picky' and formal/academic tags;

 - this should only really work as of v0.16 of the dictionary, where
   'email' is accepted in pt-BR.
  • Loading branch information
p-goulart committed Apr 24, 2024
1 parent d89a183 commit 67c92fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Expand Up @@ -36309,17 +36309,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
<example correction="EaD">Professores de <marker>EAD</marker> têm várias dificuldades.</example>
</rule>

<rule id="EMAIL_SEM_HIFEN_ORTHOGRAPHY" name="Corrigir email para e-mail">
<!-- p-goulart@2024-02-27 - DESC: the _ORTHOGRAPHY suffix is to get a red underline -->
<pattern>
<token regexp="yes">emails?</token>
</pattern>
<message>A palavra <suggestion><match no="1" regexp_match="(?i)email(s)?" regexp_replace="e-mail$1"/></suggestion> se escreve com hífen.</message>
<example correction="e-mail">Ele me enviou outro <marker>email</marker>.</example>
<example correction="e-mails">Não vejo <marker>emails</marker> novos.</example>
<example correction="E-mail"><marker>Email</marker>: foo@bar.com</example>
</rule>

<rulegroup id="DIACRITICS" name="Confusão com diacríticos">
<!-- Created by Jaume Ortolà, Portuguese rule 2021-01-08 -->
<!--
Expand Down
Expand Up @@ -3616,6 +3616,17 @@ USA
</category>
<category id='FORMAL' name='Linguagem formal' type='style' tone_tags="formal">

<rule id="EMAIL_SEM_HIFEN" name="Corrigir email para e-mail" tags="picky" tone_tags="academic" is_goal_specific="true">
<!-- p-goulart@2024-02-27 - DESC: the _ORTHOGRAPHY suffix is to get a red underline -->
<!-- p-goulart@2024-04-24 - DESC: removed the _ORTHOGRAPHY suffix, and made rule picky (cf. portuguese-pos-dict#27) -->
<pattern>
<token regexp="yes">emails?</token>
</pattern>
<message>Em contextos oficiais ou formais, prefira escrever <suggestion><match no="1" regexp_match="(?i)email(s)?" regexp_replace="e-mail$1"/></suggestion> com hífen.</message>,
<example correction="e-mail">Ele me enviou outro <marker>email</marker>.</example>
<example correction="e-mails">Não vejo <marker>emails</marker> novos.</example>
<example correction="E-mail"><marker>Email</marker>: foo@bar.com</example>
</rule>

<rule id='PAÍSES_DO_TERCEIRO_MUNDO' name="'aos/os países do terceiro mundo' → 'ao/o Terceiro Mundo'" default="temp_off">
<pattern>
Expand Down

0 comments on commit 67c92fe

Please sign in to comment.