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.

shawn-6424 46 Reputation points
2021-02-27T16:29:02.447+00:00

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
Azure Translator
An Azure service to easily conduct machine translation with a simple REST API call.
393 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 45,961 Reputation points Microsoft Employee
    2021-03-01T07:03:28.463+00:00

    @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",  
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.