Lingua Detective vs Google Cloud Translation detectLanguage: whole-site verdicts, not a text-blob score

Verdict: Google Cloud Translation's detectLanguage is a reliable, well-documented way to detect the language of a piece of text you already have in hand, and it covers 100+ languages on Google's own infrastructure. It was never built to tell you whether a *website* is actually serving the right language on every page — that takes crawling, rendering, and a verdict per URL, which is what Lingua Detective does instead. Pick based on the job: detecting a string vs. auditing a site.

Google Cloud Translation detectLanguageLingua Detective
What it isManaged API that detects the language of a text stringSite crawler + language-verdict engine for multilingual sites
SetupGCP account, billing, API key or service accountNone — first 20 pages free, no account or card
Pricing~$20 per 1M characters$0.015 → $0.006/page in bulk, or $0.002/call via pay-per-call API
Privacy / offlineText is sent to Google's servers for processingOffline detection engine — page text never leaves to a third party
OutputLanguage code + confidence for a text blobPer-page pass/fail verdict across the whole site, with optional AI arbitration
Best forDetecting the language of arbitrary strings inside your own appAuditing whether a live multilingual site is actually correct, page by page

Pick Google Cloud Translation detectLanguage if…

Pick Lingua Detective if…

Pricing math

Auditing a 500-page multilingual site:

FAQ

Q: Does detectLanguage tell me which pages of my site are wrong?
No — it only returns a language code for text you send it; you'd still build the crawling and page mapping yourself.

Q: Is Lingua Detective's offline engine as accurate as Google's API?
For clear-cut text, comparable. Ambiguous or mixed-language pages get an optional AI arbitration pass before a verdict ships.

Q: Do I need a GCP account or credit card to try Lingua Detective?
No — the first 20 pages are free, no account or card required.