Lingua Detective vs franc: language-detection library vs full-site audit

Verdict: If you need to classify a string of text into one of 180+ languages inside a Node.js app, franc is free, fast, and hard to beat — use it directly. If you need to know whether an entire multilingual website is actually serving the right language on every page, including JavaScript-rendered ones, you need more than a detection function: a crawler, a renderer, boilerplate handling, and a verdict per page — which is what Lingua Detective adds on top.

francLingua Detective
What it isOpen-source JavaScript library for language detection via trigram analysisManaged service that crawls a site and audits every page's actual language
Setupnpm install franc, call franc(text) in your own codeGive it a URL or a list of URLs — no code, no server to maintain
PricingFree, no accountFree trial (20 pages, no account/card); then $0.015→$0.010→$0.006/page, +$0.005/page if it crawls for you; or pay-per-call API from $0.002
Privacy / offlineFully offline — text never leaves your processOffline detection engine by default; uncertain pages can optionally go to AI arbitration
OutputAn ISO 639-3 language code (or ranked guesses) for a string you supplyA per-page verdict — Conforming, Non-conforming, Uncertain, Error, or Undetermined — plus a site report
Best forDevelopers embedding language ID in an app or data pipelineTeams that need an auditable view of a whole multilingual site, not a single string

Pick franc if…

Pick Lingua Detective if…

Pricing math

Auditing a 500-page site with URLs supplied: the first 200 pages bill at $0.015 ($3.00), the next 300 at $0.010 ($3.00), for $6.00 total. Ask Lingua Detective to crawl the site itself and discover the pages, and the spider adds $0.005/page (+$2.50), bringing it to $8.50. Building the equivalent around franc means adding your own crawler, a headless browser for JS-rendered templates, and boilerplate stripping — none of which franc itself provides, and all of which take real engineering time to build and keep working.

FAQ

Q: Can franc detect the language of a live web page?
No — franc classifies text you pass it. Crawling, rendering JavaScript, and stripping repeated template text are separate problems it doesn't solve.

Q: Does Lingua Detective replace franc?
Not exactly — Lingua Detective runs its own offline detection engine, then adds crawling, rendering, per-page verdicts, and optional AI arbitration on top.

Q: Is franc accurate on very short text?
Trigram-based detectors like franc do best above roughly 50 characters; very short or mixed-language snippets are more error-prone.