Another option, if you use CG, is to just have an AFTER-SECTIONS with
lots of
REMOVE:default ("less-likely-lemma");
etc.
> It's used in apertium-eng to select between the different analyses of -ing.
> The tricky part is that you need to put weights on all the relevant entries
> because the default weight is 0 and the lowest weight comes first (which I
> definitely should have mentioned in the first email).
>
> Daniel
>
> On Thu, Apr 9, 2026 at 4:45 PM Aure Séguier <[email protected]> wrote:
>
>> Hi
>>
>> Thanks but it doesn't work. Adding the "w" attribute had no effect. I
>> tried changing the order of the words in the monodix too, but it didn't
>> change anything.
>>
>> Is the "w" attribute used in all the monolingual repositories ? I didn't
>> see anything like this in apertium-oci.
>>
>> Is there any other way to choose a "default" word, or to understand how
>> Apertium chooses it ?
>>
>> Thanks
>> Aure SÉGUIER
>>
>> Responsabla del pòle informatic
>>
>> Congrès permanent de la lenga occitana
>>
>>
>>
>> [image: mobilePhone] +33 (0)5 32 00 00 64 <+33%20(0)5%2032%2000%2000%2064>
>> [image: website] www.locongres.org <//www.locongres.org>
>> [image: address] La Ciutat - Creem! , 5-7 rue de la Fontaine, 64000 Pau
>>
>>
>>
>>
>> [image: facebook] <https://www.facebook.com/lo.congres>
>>
>> [image: twitter] <https://twitter.com/locongres>
>>
>> [image: linkedin]
>> <https://www.linkedin.com/company/congres-permanent-de-la-lenga-occitane/>
>>
>> [image: instagram] <https://www.instagram.com/locongres/>
>>
>>
>>
>> Le 09/04/2026 à 15:58, Daniel Swanson a écrit :
>>
>> Subsequent modules will select whichever analysis is listed first. You can
>> control the order with weights, so an entry with <e w="0"> will appear
>> before an entry that begins <e w="1">.
>>
>> Daniel
>>
>> On Thu, Apr 9, 2026 at 8:15 AM Aure Séguier <[email protected]>
>> wrote:
>>
>>> Hi !
>>>
>>> I would like to know how Apertium chooses between two potential
>>> categories for a word when it's not disambiguated in the rules. For
>>> instance, I have this :
>>> $ ^còsta/còsta<adv>/costar<vblex><pri><p3><sg>/¬còsta<pr><REMOVE:2151>
>>> /¬còsta<n><f><sg><REMOVE:1987>/¬costar<vblex><imp><p2><sg><REMOVE:1016>
>>>
>>> After the elimination of the three last possibilities, how Apertium will
>>> choose between the two first ? Is it a way to choose the "default" value
>>> when the rules leave a doubt ?
>>>
>>> Thanks
>>>
>>>
>>> --
>>> Aure SÉGUIER
>>>
>>> Responsabla del pòle informatic
>>>
>>> Congrès permanent de la lenga occitana
>>>
>>>
>>>
>>> [image: mobilePhone] +33 (0)5 32 00 00 64
>>> <+33%20(0)5%2032%2000%2000%2064>
>>> [image: website] www.locongres.org <//www.locongres.org>
>>> [image: address] La Ciutat - Creem! , 5-7 rue de la Fontaine, 64000 Pau
>>>
>>>
>>>
>>>
>>> [image: facebook] <https://www.facebook.com/lo.congres>
>>> [image: twitter] <https://twitter.com/locongres>
>>> [image: linkedin]
>>> <https://www.linkedin.com/company/congres-permanent-de-la-lenga-occitane/>
>>> [image: instagram] <https://www.instagram.com/locongres/>
>>>
>>>
>>> _______________________________________________
>>> Apertium-stuff mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>>>
>>
>>
>> _______________________________________________
>> Apertium-stuff mailing
>> [email protected]https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>>
>> _______________________________________________
>> Apertium-stuff mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>>
>
> _______________________________________________
> Apertium-stuff mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff