Skip to content
Permalink
Browse files

Merge pull request #1767 from languagetool-org/es-am-pm-rule

[es] rule for am/pm abbreviation
  • Loading branch information...
tiff committed Aug 1, 2019
2 parents 5781b2d + d2b54d8 commit bf1144cc9ff1a4b5dafb5805e1b2358c9f09d318
@@ -1,6 +1,5 @@
# Words that extend the spell checker. See ignore.txt for words that should be
# completely ignored (i.e. not used to create suggestions).
# AM
# Center
# City
# derrepente
@@ -9,7 +8,6 @@
# mami
# New
# papi
# PM
# religionista
# religionistas
# River
@@ -32,6 +30,8 @@ Alexander
Alexey
Alexis
Alibaba
am
AM
Amadeo
Amanda
Amazon
@@ -359,6 +359,8 @@ Photoshop
Picasso
plazo
plazos
pm
PM
Polanco
pospago
post
@@ -1987,6 +1987,34 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
</rule>
</category>
<category id='TYPOGRAPHY' name="Tipografía" type="typographical">
<rulegroup id="AM_PM" name="AM/PM">
<rule>
<pattern>
<token regexp="yes">am|pm|AM|PM</token>
<token>.</token>
</pattern>
<message>Estas abreviaturas deben escribirse en minúsculas y con la puntuación indicada.</message>
<suggestion><match no="1" regexp_match="(a|A|p|P)(m|M)" regexp_replace="$1.$2." case_conversion="alllower" /></suggestion>
<url>https://spanish.stackexchange.com/questions/888/use-of-am-pm-in-time</url>
<example correction="a.m.">La entrada es a las 7.30 <marker>AM.</marker></example>
<example correction="p.m.">El servicio se realizará a las 5 <marker>pm.</marker></example>
<example>El servicio se realizará a las 5 <marker>p.m.</marker></example>
<example>El servicio se realizará a las 5 <marker>a.m.</marker>!</example>
<example type="correct">La entrada es a las 7.30 am</example>
</rule>
<rule>
<pattern>
<token regexp="yes">am|pm|AM|PM</token>
</pattern>
<message>Estas abreviaturas deben escribirse en minúsculas y con la puntuación indicada.</message>
<suggestion><match no="1" regexp_match="(a|A|p|P)(m|M)" regexp_replace="$1.$2." case_conversion="alllower" /></suggestion>
<url>https://spanish.stackexchange.com/questions/888/use-of-am-pm-in-time</url>
<example correction="a.m.">La entrada es a las 7.30 <marker>AM</marker></example>
<example correction="p.m.">El servicio se realizará a las 5 <marker>pm</marker>!</example>
<example>El servicio se realizará a las 5 <marker>p.m.</marker></example>
<example>El servicio se realizará a las 5 <marker>a.m.</marker></example>
</rule>
</rulegroup>
<rulegroup id="ARROWS" name="Flechas: -&gt; (→)">
<!-- Localized from German grammar.xml, by Tiago F. Santos, 2017-07-07 -->
<rule>

0 comments on commit bf1144c

Please sign in to comment.
You can’t perform that action at this time.