German dictionary entries have incorrect capitalization

Sebastian Rettig 5 Reputation points
2023-03-09T18:50:43.8333333+00:00

Hi,

I want to use the dictionary components of Azure Translator. I've noticed, however, that all the German dictionary entries seem to ignore capitalization in the displayTarget field. German nouns are always capitalized, but all German nouns returned by the API are lowercase.

Example (when requesting the dictionary for English "cup"):

[
    {
        "normalizedSource": "cup",
        "displaySource": "cup",
        "translations": [
            {
                "normalizedTarget": "tasse",
                "displayTarget": "tasse",
                "posTag": "NOUN",
                "confidence": 0.7572,
                "prefixWord": "",
                "backTranslations": [
                    {
                        "normalizedText": "cup",
                        "displayText": "cup",
                        "numExamples": 0,
                        "frequencyCount": 17840
                    },
                    {
                        "normalizedText": "bowl",
                        "displayText": "bowl",
                        "numExamples": 1,
                        "frequencyCount": 190
                    }
                ]
            }
        ]
    }
]

The capitalization should be "Tasse" and not "tasse". I don't want to add custom logic regarding the capitalization of a single language, as my app is language agnostic. However, I can't use the translation results like this. Is this something that is broken in the service or is there a workaround?

Azure AI Translator
Azure AI Translator
An Azure service to easily conduct machine translation with a simple REST API call.
491 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,680 questions
{count} votes

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.