lttoolbox
lttoolbox copied to clipboard
Support direction restrictions in weights
Currently, weights are specified using the w
attribute. Using it in a bidix gives an entry the same weight for both directions, potentially producing unwanted effects if there are lexical units with multiple translations in both directions.
I suggest adding the attributes wr
and wl
with a behaviour equivalent to what vr
and vl
already do with variants.
Thanks!
Or w
could apply to <l>
and <r>
. Although really this is a question for r=LR
and r=RL
. If you want different weights then these are really different entries, so e.g.
<e r="LR" w="1.0"><p><l>estació<s n="n"/><s n="f"/></l><r>station<s n="n"/></r></p></e>
<e w="3.0"><p><l>estació<s n="n"/><s n="f"/></l><r>season<s n="n"/></r></p></e>
<e r="RL" w="2.0"><p><l>estació<s n="n"/><s n="f"/></l><r>station<s n="n"/></r></p></e>
<e w="3.0"><p><l>lloc<s n="n"/><s n="f"/></l><r>station<s n="n"/></r></p></e>