El 2017-07-18 19:04, Marc Riera Irigoyen escribió:
I hadn't considered the other uses, but I've come up with a better
solution that takes them into consideration and shouldn't break pairs
relying on apertium-eng.

Basically, the genitive form would be added as generation-only for
paradigms with a regular ('s) genitive. The would allow apertium to
detect the 's as both a genitive and a verb during analysis, and at
the same time provide an easy way to generate the genitive when
needed. Example:

<pardef n="house__n">
  <e>       <p><l></l>          <r><s n="n"/><s n="sg"/></r></p></e>
  <e r="RL"><p><l>'s</l>        <r><s n="n"/><s n="sg"/><s
n="gen"/></r></p></e>
  <e>       <p><l>s</l>         <r><s n="n"/><s n="pl"/></r></p></e>
  <e>       <p><l>s'</l>        <r><s n="n"/><s n="pl"/><s
n="gen"/></r></p></e>
</pardef>

Verb contractions are currently limited to pronoun+verb combinations,
so I'd have to add 's independently as both a form of is and has.
Nothing would be removed, only added, so other pairs should be
unaffected.

I really think it would be better to not use <gen> like that, and instead use:

<pardef n="house__n">
   <e>       <p><l></l>          <r><s n="n"/><s n="sg"/></r></p></e>
<e r="RL"><p><l>'s</l> <r><s n="n"/><s n="sg"/><j/>'s<s n="gen"/></r></p></e>
   <e>       <p><l>s</l>         <r><s n="n"/><s n="pl"/></r></p></e>
<e r="RL"> <p><l>s'</l> <r><s n="n"/><s n="pl"/><j/>'s<s n="gen"/></r></p></e>
 </pardef>


Note, if you did want to do analysis of those two, you'd need to also add:

<e> <p><l>s'</l> <r><s n="n"/><s n="pl"/><j/>'<s n="apos"/></r></p></e>

And disambiguate it in CG.

Fran

------------------------------------------------------------------------------
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
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to