Skip to content

Is it possible just to detect the source language without translating? #65

Open

Description

@rvalitov

I like the accuracy of language detection of DeepL. Is it possible to use just this functionality without translating?

Activity

  1. JanEbbing commented on May 12, 2025

    @JanEbbing
    Contributor

    We don't have a separate endpoint in the API/method in the library for this, but you can just use translateText() and just look at the detected source language (and ignore the text).

    Out of interest, is the reason behind you asking this that you would expect a language detection endpoint to be faster or cheaper?

  2. rvalitov commented on May 12, 2025

    @rvalitov
    Author

    Thank you! Yes, exactly, I was thinking that if the text is already in the desired language, then why translate it? Language detection should use less resources, tokens, etc. Or if I will call the API to translate from English to English, it will not translate or alter the source text, because the detected source language matches the destination language?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions