class LanguageApp method .detect()

LanguageApp is the Apps Script service.

.detect() is the method name you will see after a dot in your code.

What it does

Detects the language of a piece of text.

Why it's used

  • Route messages to the right reviewer based on language.
  • Flag rows where the input language is unexpected.

Common errors

  • Forgetting parentheses on detect. Write LanguageApp.detect(), not LanguageApp.detect or detect by itself.
  • Skipping dots between chained calls. Each step needs a dot, like LanguageApp.detect().
  • Adding spaces where they do not belong. Write LanguageApp.detect(), not LanguageApp .detect(), LanguageApp.detect (), or LanguageApp . detect().
  • Wrong capitalization. Use LanguageApp and detect, not languageapp or detect.

Explore

Related methods

Better Sheets tutorials

No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.

Related blog posts

Written guides about LanguageApp.detect().

Browse the blog