apertium / apertium-recursive

Recursive structural transfer module for Apertium
https://wiki.apertium.org/wiki/Apertium-recursive
GNU General Public License v3.0
6 stars 4 forks source link

Should deleting a tag be explicit? #54

Closed ftyers closed 4 years ago

ftyers commented 4 years ago

A possible improvement to the formalism would be that tags should have to be deleted with <let>...<lit v=""/></let>. Assigning an empty clip to a tag using e.g. <let><clip pos="1" part="a_gen"/><clip pos="2" part="a_gen"/> should not set the a_gen of 1 to '' if the a_gen of 2 does not match.

ftyers commented 4 years ago

This might be related to #53.

mr-martian commented 4 years ago

So you want <let><clip><clip></let> to check whether the second clip is empty and do nothing if so?

ftyers commented 4 years ago

I think it might be an improvement, but I'm not sure. I'm not sure if there are any genuine times when double clip should result in a deletion. Can you think of any?