Incorrect language detection and translation

Vincent Ciganik 0 Reputation points
2025-07-10T18:18:09.6433333+00:00

I'm using the translation service and it's not detecting the language or translating the text correctly for Haitian Creole, specifically received "OK mèsi" and it's being detected as Catalan and not translated.

Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
{count} votes

1 answer

Sort by: Most helpful
  1. Sina Salam 25,761 Reputation points Volunteer Moderator
    2025-09-28T22:21:31.6366667+00:00

    Hello Vincent Ciganik,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you are having issues with the Incorrect language detection and translation.

    By implementing multi-layered strategy below, you can address both the initial language detection flaw and the more critical issue of translation inaccuracy for short phrases in low-resource languages. Use the associated links for more steps and details:

    1. Avoid Auto-detection for Short Texts: Prefer specifying the from parameter whenever possible. - Translate Method - from parameter- https://free.blessedness.top/en-us/azure/ai-services/translator/reference/v3-0-translate#optional-parameters
    2. Boost Detection with Context: When using auto-detection, provide a longer text sample. - Detect Method- https://free.blessedness.top/en-us/azure/ai-services/translator/reference/v3-0-detect
    3. Fix Bad Translations Permanently: For recurring translation errors, use Azure Custom Translator with a dynamic dictionary to enforce the correct output. - Custom Translator - Dictionary- https://free.blessedness.top/en-us/azure/ai-services/translator/custom-translator/what-is-dictionary
    4. Implement a Client-Side Fallback: As a last resort, create a heuristic post-processing layer to correct known translation failures.

    For a production system, your integrated workflow should look like below:

    User's image

    I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.

    0 comments No comments

Your answer

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