how to remove translation error in apertium language pair?

60 Views Asked by At

i m translating words in terminal by this command
echo باپ | apertium -d . urd-pan_Arab
and it is giving me
#پیو
which is correct but when i run
echo کبھی | apertium -d . urd-pan_Arab
it is giving me same word again as if there is no word in dict file
*کبھی
instead of #کدی
this is repository (https://github.com/hsumerf/apertium-urd-pan) and words are on line no. 266 & 267 in file apertium-urd-pan/apertium-urd-pan.urd-pan_Arab.dix , how to overcome this problem?

1

There are 1 best solutions below

1
F. Tyers On

In the apertium-urd dictionary, کبھی is an adverb, in the apertium-urd-pan dictionary it is a masculine noun. As the tags don't match the word is not added to the final transducer.

To fix this, either add کبھی as an adverb to the bilingual dictionary or add کبھی as a masculine noun to the Urdu monolingual dictionary.