apertium / apertium-separable

Module for reordering separable/discontiguous multiwords.
https://wiki.apertium.org/wiki/Apertium_separable
GNU General Public License v3.0
4 stars 5 forks source link

trouble with optional paradigm block #15

Closed jonorthwash closed 3 years ago

jonorthwash commented 4 years ago

From apertium-eng-kir.eng-kir.lsx

        <e lm="make really hot" c="ысыт">
            <p>
                <l>make<s n="vblex"/></l>
                <r>make<b/>hot<s n="vblex"/></r>
            </p>
            <i><t/><j/></i>
            <par n="SN"/>
            <par n="SAdv"/>
            <p>
                <l>hot<s n="adj"/><s n="sint"/><j/></l>
                <r></r>
            </p>
        </e>

This rule doesn't apply, apparently (tested, confirmed) because of the shorter version of the rule, without SAdv.

In theory, though, there should be an easy way to specify "optional SAdv", so these can be condensed into one rule. Defining such as below does not solve this—it matches the simple rule but not any of the versions with adverbs.

        <pardef n="optSAdv">
            <e></e>
            <e><par n="adv"/></e>
            <e><par n="adv"/><par n="adv"/></e>
        </pardef>

A sentence that can be tested is "Бул тон мени (аябай) ысытып атат" with expected output of "This fur coat is making me (really) hot."

mr-martian commented 4 years ago

I believe this is the same issue is as #18, namely that lsx-proc was not LRLM until a few days ago. The example given above now works for me.