From what I understand, GoogleTrans makes an Ajax call to the actual Google Translate. It's quite easy to set up and use. I am trying to translate English words into Spanish, but I see that the GoogleTrans module only returns a single translation even when there are multiple possible translations.
For instance. The word 'Lawyer' has two possible translations in Spanish viz, 'abogada' (feminine) and 'abogado' (masculine). However, the GoogleTrans only returns back 'abogado'.
How can I get both the translations?
from googletrans import Translator
translator = Translator()
translator.translate('lawyer', dest="es").text
>> 'abogado'
I am using this module for an offline task. Therefore, I am open to suggestions and workarounds if any.