If I have this in foo.dix:

<e><p><l>PC-ane</l><r>PC<s n="n"/><s n="m"/><s n="pl"/><s n="def"/></r></p></e>

then I get

$ echo '^PC<n><m><pl><def>$' | lt-proc -d foo.autogen.bin
PC-ane

which is what I want. However, sometimes people write compounds in
lowercase, so I try including both upper and lower-case lemmas (I only
care about generation now):

<e><p><l>pc-ane</l><r>pc<s n="n"/><s n="m"/><s n="pl"/><s n="def"/></r></p></e>
<e><p><l>PC-ane</l><r>PC<s n="n"/><s n="m"/><s n="pl"/><s n="def"/></r></p></e>

but that gives

$ echo '^PC<n><m><pl><def>$' | lt-proc -d foo.autogen.bin
PC-ane/PC-ANE

Would it make sense for lt-proc to not output forced-uppercase analyses
if there's an otherwise identical dictionary-uppercase analysis? (Would
it be easily implementable?)

The only other solution I can think of is to put a tag on anything that
has an uppercase lemma, which sounds like more testvoc.

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to