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

Concordance macros for Spanish #51

Open ftyers opened 4 years ago

ftyers commented 4 years ago

The old transfer had a set of concordance macros to deal with determining gender and number in cases like,

adj.m.sg n.m.sg     el coche nuevo
adj.m.sg n.m.sp     el saltamontes nuevo 
adj.m.sg n.mf.sg    el criminal nuevo
adj.m.sg n.mf.sp    el trotamundos nuevo
adj.m.pl n.m.pl     los coches nuevos
adj.m.pl n.m.sp     los saltamontes nuevos
adj.m.pl n.mf.pl    los criminales nuevos
adj.m.pl n.mf.sp    los trotamundos nuevos
*adj.m.sp n.m.sg        
*adj.m.sp n.m.pl
*adj.m.sp n.m.sp
*adj.m.sp n.mf.sg
*adj.m.sp n.mf.pl
*adj.m.sp n.mf.sp
adj.f.sg n.f.sg     la casa nueva
adj.f.sg n.f.sp     la tesis nueva
adj.f.sg n.mf.sg    la criminal nueva
adj.f.sg n.mf.sp    la trotamundos nueva
adj.f.pl n.f.pl     las casas nuevas
adj.f.pl n.f.sp     las tesis nuevas
adj.f.pl n.mf.pl    las criminales nuevas
adj.f.pl n.mf.sp    las trotamundos nuevas
*adj.f.sp n.f.sg
*adj.f.sp n.f.pl
*adj.f.sp n.f.sp
*adj.f.sp n.mf.sg
*adj.f.sp n.mf.pl
*adj.f.sp n.mf.sp
adj.mf.sg n.m.sg    el coche interesante
adj.mf.sg n.m.sp    el saltamontes interesante
adj.mf.sg n.f.sg    la casa interesante
adj.mf.sg n.f.sp    la tesis interesante
adj.mf.sg n.mf.sg   _ criminal interesante
adj.mf.sg n.mf.sp   _ trotamundos interesante
adj.mf.pl n.m.pl    los coches interesantes
adj.mf.pl n.m.sp    los saltamontes interesantes
adj.mf.pl n.f.pl    las casas interesantes
adj.mf.pl n.f.sp    las tesis interesantes
adj.mf.pl n.mf.pl   _ criminales interesantes
adj.mf.pl n.mf.sp   _ trotamundos interesantes
adj.mf.sp n.m.sg    el coche salvavidas
adj.mf.sp n.m.pl    los coches salvavidas
adj.mf.sp n.m.sp    _ saltamontes salvavidas
adj.mf.sp n.f.sg    la casa salvavidas
adj.mf.sp n.f.pl    las casas salvavidas
adj.mf.sp n.f.sp    _ tesis salvavidas
adj.mf.sp n.mf.sg   _ criminal salvavidas
adj.mf.sp n.mf.pl   _ criminales salvavidas
adj.mf.sp n.mf.sp   _ trotamundos salvavidas

It would be great to have similar macros for this transfer. They are called f_concord1, f_concord2 etc. In principle we should only need 1 and 2 here.

ftyers commented 4 years ago

It would also be great if this could interface with -anaphora too, e.g. if you have a sentence like, "Anna and Felicity are the most lifesaving globetrotters." you could get "Anna y Felicity son las trotamundos las más salvavidas".

mr-martian commented 4 years ago

It would also be great if this could interface with -anaphora too, e.g. if you have a sentence like, "Anna and Felicity are the most lifesaving globetrotters." you could get "Anna y Felicity son las trotamundos las más salvavidas".

By interface do you mean something more involved than running rtx-proc -a and using <clip side="ref"/> ?

ftyers commented 4 years ago

No, I mean exactly that :)