apertium / apertium-lex-tools

Module for compiling lexical selection rules and processing them in the pipeline.
https://wiki.apertium.org/wiki/Constraint-based_lexical_selection_module
GNU General Public License v3.0
5 stars 12 forks source link

LRX suffix attribute not working #56

Closed jaumeortola closed 2 years ago

jaumeortola commented 4 years ago

Translation spa>cat, sentence Rayaba en la libreta.

Expected translation: Ratllava en la llibreta.

It should not match this rule LRX rule . But the rule matches and the translation is Ranejava en la llibreta.

mr-martian commented 2 years ago

There was a typo in the code that made suffix= have the expected behavior of contains= and vice-versa. See if 8f114b7 fixes the issue for you.

jaumeortola commented 2 years ago

Thank you. I am not compiling the source code, but @MarcRiera confirms that it works as expected.