Language Detection

Automatic Language Detection

The bot automatically detects the source language of the message with high accuracy.

TranslateMate uses advanced language detection algorithms powered by DeepL to identify the language of any message you want to translate. This means you don’t need to manually specify the source language in most cases.

How It Works

When you use translation commands like /translate or react with flag emojis, the bot:

  1. Analyzes the text content
  2. Identifies the source language
  3. Translates to your target language
  4. Displays both the source and target languages in the translation

Accuracy

The language detection system is highly accurate and can distinguish between:

  • Similar languages (e.g., Portuguese variants, English variants)
  • Mixed-language content
  • Short text snippets
  • Technical and colloquial text

Planned Feature

The bot will soon support language detection commands and source language selection.

Upcoming Features

We’re working on additional language detection capabilities:

  • Manual source language override: Specify the source language when automatic detection is uncertain
  • Language detection command: Get information about a text’s language without translating
  • Multi-language detection: Identify multiple languages in a single message

Current Behavior

Currently, TranslateMate always attempts automatic language detection. If the source language cannot be determined with confidence, the translation may not proceed or may request manual specification.

Best Practices

For optimal language detection:

  • Provide context: Longer messages are easier to detect accurately
  • Avoid mixing languages: Keep each message in one language when possible
  • Use proper spelling: Correct spelling helps the detection algorithm
  • Consider special characters: Some scripts (Arabic, Chinese, Cyrillic) are always accurately detected

Need Help?

If you experience issues with language detection, join our [Discord Server]({{ .Site.Params.discord.supportServerUrl }}) or use the /help command.