1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
<rules>
<!--
Chooses "ciento" as the translation for "cent" when it is of followed by a <num>.
-->
<rule weight="1.0">
<match lemma="cent">
<select lemma="ciento"/>
</match>
<match tags="num.*"/>
</rule>
<rule weight="1.0">
<match lemma="cent">
<select lemma="cient"/>
</match>
<or>
<match lemma="mil"/>
<match lemma="millón"/>
</or>
</rule>
</rules>
<!--
Resources:
https://wiki.apertium.org/wiki/How_to_get_started_with_lexical_selection_rules
https://wiki.apertium.org/wiki/Constraint-based_lexical_selection
https://wiki.apertium.org/wiki/Lexical_selection
https://wiki.apertium.org/wiki/Learning_rules_from_parallel_and_non-parallel_corpora
-->
|