Skip to content

Commit

Permalink
[es] improve estas/estás
Browse files Browse the repository at this point in the history
  • Loading branch information
jaumeortola committed Mar 15, 2022
1 parent 23c76d4 commit 28153ee
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5196,7 +5196,7 @@ Copyright (C) 2011 Juan Martorell
<rulegroup id="not_adj_but_verb" name="not adjective but verb">
<antipattern>
<!-- possible error esta/está -->
<token>esta</token>
<token regexp="yes">estas?</token>
<token postag="AQ.*" postag_regexp="yes"/>
</antipattern>
<rule>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8008,6 +8008,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
<example correction="estás">Ahora <marker>estas</marker> un poco baja de moral.</example>
<example correction="estás">¿Ahora <marker>estas</marker> contenta?</example>
<example correction="estás">Se nota que <marker>estas</marker> inquieta.</example>
<example correction="estás">Piensas que <marker>estas</marker> despierto, pero estás soñando.</example>
<example>Alguien desordena estas rosas.</example>
<example>Estas características añadidas son:</example>
<example>Estas ahora no están.</example>
Expand Down Expand Up @@ -8090,17 +8091,77 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
<rule>
<pattern>
<token regexp="yes">que|si|cual</token>
<token min="0">no</token>
<marker>
<token>estas</token>
</marker>
<token postag="SPS00|LOC_PREP|A.*|V.P.*|CS|PR.*" postag_regexp="yes"><exception postag="A..[FC][PN].|V.P..PF" postag_regexp="yes"/></token>
<token postag="SPS00|LOC_PREP|A.*|V.P.*|CS|PR.*|PP[12]CSO00|DA0NS0|SP:DA|RG" postag_regexp="yes"><exception postag="A..[FC][PN].|V.P..PF" postag_regexp="yes"/></token>
</pattern>
<message>Si es del verbo 'estar', se escribe con tilde.</message>
<suggestion><match no="3" regexp_match="(?iu)a" regexp_replace="á" case_conversion="preserve"/></suggestion>
<suggestion><match no="2" regexp_match="(?iu)a" regexp_replace="á" case_conversion="preserve"/></suggestion>
<example correction="estás">Se nota que <marker>estas</marker> con él.</example>
<example correction="estás">Pues sí que <marker>estas</marker> como una regadera.</example>
</rule>
<rule default="temp_off">
<pattern>
<token regexp="yes">que|si|cual</token>
<token postag="D.*" postag_regexp="yes"/>
<token regexp="yes" inflected="yes">&unidades_tiempo;|vez|ocasión</token>
<marker>
<token>estas</token>
</marker>
<token postag="SPS00|LOC_PREP|A.*|V.P.*|CS|PR.*|PP[12]CSO00|DA0NS0|SP:DA|RG" postag_regexp="yes"><exception postag="A..[FC][PN].|V.P..PF" postag_regexp="yes"/></token>
</pattern>
<message>Si es del verbo 'estar', se escribe con tilde.</message>
<suggestion><match no="4" regexp_match="(?iu)a" regexp_replace="á" case_conversion="preserve"/></suggestion>
<example correction="estás">Si alguna vez <marker>estas</marker> con él.</example>
</rule>
<rule default="temp_off">
<antipattern>
<token skip="10">las</token>
<token skip="10">con</token>
<token>y</token>
<token>estas</token>
<token>con</token>
</antipattern>
<pattern>
<token regexp="yes">no|o|y|bien|tú|cuando|ya|nunca|siempre|ahora</token>
<marker>
<token>estas</token>
</marker>
<token postag="SPS00|LOC_PREP|A.*|V.P.*|CS|PR.*|PP[12]CSO00|DA0NS0|SP:DA|RG" postag_regexp="yes"><exception postag="A..[FC][PN].|V.P..PF" postag_regexp="yes"/></token>
</pattern>
<message>Si es del verbo 'estar', se escribe con tilde.</message>
<suggestion><match no="2" regexp_match="(?iu)a" regexp_replace="á" case_conversion="preserve"/></suggestion>
<example correction="estás">No <marker>estas</marker> con él.</example>
<example correction="estás">Tú <marker>estas</marker> al mando.</example>
<example>La cueva estaba mal iluminada, las sombras se confundían con las tinieblas, y estas con los murciélagos.</example>
</rule>
<rule default="temp_off">
<pattern>
<token>lo</token>
<token postag="A.*|V.P.*" postag_regexp="yes"/>
<token>que</token>
<marker>
<token>estas</token>
</marker>
<token regexp="yes">\p{P}</token>
</pattern>
<message>Si es del verbo 'estar', se escribe con tilde.</message>
<suggestion><match no="4" regexp_match="(?iu)a" regexp_replace="á" case_conversion="preserve"/></suggestion>
<example correction="estás">Vieno lo moreno que <marker>estas</marker>, parece que hayas estado en la playa.</example>
</rule>
<rule default="temp_off">
<pattern>
<marker>
<token>estas</token>
</marker>
<token>en</token>
<token>lo</token>
</pattern>
<message>Si es del verbo 'estar', se escribe con tilde.</message>
<suggestion><match no="1" regexp_match="(?iu)a" regexp_replace="á" case_conversion="preserve"/></suggestion>
<example correction="estás">Al parecer <marker>estas</marker> en lo cierto.</example>
</rule>
</rulegroup>
<rulegroup id="ESTAS_TILDE2" name="estas/estás">
<rule>
Expand Down Expand Up @@ -8138,6 +8199,31 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
<suggestion><match no="1" regexp_match="(?iu)a" regexp_replace="á" case_conversion="preserve"/></suggestion>
<example correction="estás">¡Bueno <marker>estas</marker> tú hecho!</example>
</rule>
<rule default="temp_off">
<pattern>
<token postag="C.*|PR.*|SENT_START|LOC_CS" postag_regexp="yes"/>
<marker>
<token>estas</token>
</marker>
<token regexp="yes">ahí|aquí|dentro|fuera|arriba|abajo|al|en|allí|allá|como</token>
</pattern>
<message>Si es del verbo 'estar', se escribe con tilde.</message>
<suggestion><match no="2" regexp_match="(?iu)a" regexp_replace="á" case_conversion="preserve"/></suggestion>
<example correction="estás">Una vez que <marker>estas</marker> dentro ya no puedes salir.</example>
<example correction="estás">Pues sí que <marker>estas</marker> como una regadera.</example>
</rule>
<rule default="temp_off">
<pattern>
<token regexp="yes">ahí|aquí|dentro|fuera|arriba|abajo|allí|allá|como</token>
<marker>
<token>estas</token>
</marker>
<token regexp="yes">\p{P}</token>
</pattern>
<message>Si es del verbo 'estar', se escribe con tilde.</message>
<suggestion><match no="2" regexp_match="(?iu)a" regexp_replace="á" case_conversion="preserve"/></suggestion>
<example correction="estás">¡Ahí <marker>estas</marker>!</example>
</rule>
</rulegroup>
<rulegroup id="ESTE_TILDE" name="*este/esté" default="on">
<!-- TODO: que este abierto -->
Expand Down

0 comments on commit 28153ee

Please sign in to comment.