question

shawn-6424 avatar image
0 Votes"
shawn-6424 asked ·

Is it possible to get the list of all conjugations of a verb in the dictionary api? If not possible, then request to include it please.

Let's say you provide a verb, such as "eat", and in addition to the direct translation of this (for Swedish) one of the translations you get is "gråta", which is correct and fine,
however, it would be quite helpful for the Translation object, for verbs, to have the list of all other conjugations as well.

Example,

POST: https://api.cognitive.microsofttranslator.com/dictionary/lookup?api-version=3.0&from=en&to=sv

with body

 [
      {
     "Text":"eat"
     }
 ]


would be nice to have something like:



   {
         "normalizedSource": "eat",
         "displaySource": "eat",
         "translations": [
             {
                 "normalizedTarget": "äta",
                 "displayTarget": "äta",
                 "posTag": "VERB",
                 "confidence": 0.3035,
                 "prefixWord": "",
                  **"conjugations": {
                      "presentTense": "äter",
                       "pastTense": "åt",
                      ...etc
                  }**
                 "backTranslations": [
                   ....



The same would happen for the other translations, e.g. if the main one that shows up is the past tense, then all of the other tenses would show up in the conjugation list.

azure-translator
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

romungi-MSFT avatar image
0 Votes"
romungi-MSFT answered ·

@shawn-6424 Looking up the current result and the documentation of the dictionary API it seems the expected words are returned by the API in different posTag's rather than combined into one as you requested above. The current list returned for this word for swedish are:


        {
             "normalizedTarget": "äta",
             "displayTarget": "äta",
             "posTag": "VERB",
    
 ...
         {
             "normalizedTarget": "äter",
             "displayTarget": "äter",
             "posTag": "VERB",
    
 ...
         {
             "normalizedTarget": "ät",
             "displayTarget": "ät",
             "posTag": "VERB",









· 2 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the reply, I noticed that too, but I am not sure if it is a guaranteed thing that the order will always stay the same in in regards of the tense of the verb. For example, will the 1st value always be the infinitive form, 2nd value will be present tense, 3rd past tense, etc?

0 Votes 0 ·

@shawn-6424 I think the order might not be same for every case because it might vary based on the result or the word.

0 Votes 0 ·