Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pronoun lost in translation #2

Open
ftyers opened this issue Dec 28, 2020 · 1 comment
Open

Pronoun lost in translation #2

ftyers opened this issue Dec 28, 2020 · 1 comment

Comments

@ftyers
Copy link
Member

ftyers commented Dec 28, 2020

Buongiorno. Grazie per il vostro lavoro.
Ho tradotto dallo spagnolo all'italiano:
Spagnolo: el OK (me gusta) no tienes que darlo si te gusta el video pero si te unes a la iniciativa CORONAVIRUSESPERANTO.
Italiano: l'OK (mi piace) non devi darlo se ti piace il video ma se unisci all'iniziativa CORONAVIRUSESPERANTO.
Dovrebbe essere: l'OK (mi piace) non devi darlo se ti piace il video ma se ti unisci all'iniziativa CORONAVIRUSESPERANTO.
Restando in attesa di una vostra risposta vi auguro un felice Natale.
Luigi Fusi

@ftyers
Copy link
Member Author

ftyers commented Dec 28, 2020

$ echo "te unes" | apertium -d . spa-ita-transfer

apertium-transfer: Rule 36 line 5702 te<prn><pro><p2><mf><sg>/ti<prn><pro><p2><mf><sg>

apertium-transfer: Rule 52 line 7083 te<prn><pro><p2><mf><sg>/ti<prn><pro><p2><mf><sg> unir<vblex><pri><p2><sg>/unire<vblex><pri><p2><sg>

apertium-transfer: Rule 58 line 7714 .<sent>/.<sent>
apertium-transfer warning: <let> on line 7719 sometimes discards its value.
^verbcj<SV><vblex><pri><p2><sg>{^unire<vblex><pri><p2><sg>$}$^punt<sent>{^.<sent>$}$

Appears to be a problem in this rule:

    <rule> <!-- REGLA: procl verbo-->
      <pattern>
        <pattern-item n="prnpro"/>
        <pattern-item n="vblex"/>
      </pattern>

The offending part is:

                <or>
                  <and>
                    <equal> <clip pos="1" side="sl" part="tipoenc_pro"/> <lit-tag v="ref.p3.mf.sp"/> </equal>
                    <equal> <clip pos="2" side="sl" part="pers"/> <lit-tag v="p3"/> </equal>
                  </and>
                  <and>
                  <equal> <clip pos="1" side="sl" part="pers"/> <clip pos="2" side="sl" part="pers"/> </equal>
                  <equal> <clip pos="1" side="sl" part="nbr"/> <clip pos="2" side="sl" part="nbr"/> </equal>
                </and>
              </or>

This basically says skip the pronoun if it agrees in person/number with the verb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant