Thanks a lot !
How can I define src_lengadocian as the variable that means the source
language is lengadocian ?
AureSÉGUIER
Responsabla del pòle informatic
Congrès permanent de la lenga occitana
mobilePhone
+33 (0)5 32 00 00 64 <tel:+33 (0)5 32 00 00 64>
website
www.locongres.org <//www.locongres.org>
address
La Ciutat - Creem! , 5-7 rue de la Fontaine, 64000 Pau
facebook <https://www.facebook.com/lo.congres>
twitter <https://twitter.com/locongres>
linkedin
<https://www.linkedin.com/company/congres-permanent-de-la-lenga-occitane/>
instagram <https://www.instagram.com/locongres/>
Le 19/06/2024 à 10:53, Kevin Brubeck Unhammer a écrit :
Occitan can manage variety in its metadix file. My question is, is
there a way to manage variety in the .rlx file ?
There is :)
For instance, we have the word "bad", "evil" which is "mal" in
lengadocian and "mau" en gascon. But "mau" can also be a conjugated
verb (a pretty rare one). I did this rule in the RLX file : REMOVE V
IF (0 ("<mau>"i));
But I would want this rule not to apply to lengadocian, where "mau"
can only be a conjugated verb.
Is that possible ? If not, is this something easy to implement ?
Yes. You could for example say that "src_lengadocian" is the variable
that signifies that the source language is lengadocian, and then have
one rule that picks the verb if source language is lengadocian:
SELECT V IF (0 ("<mau>"i)) (0 (VAR:src_lengadocian)) ;
and one that removes it if not:
REMOVE V IF (0 ("<mau>"i)) (NEGATE 0 (VAR:src_lengadocian)) ;
I can't say for certain if this system makes things simpler or not for
you compared to metadix, but it allows for a lot more flexibility, with
much shorter compile times (since we have just one compiled FST which
contains all the variety).
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff