# wooorm/franc

Natural language detection

Repository: https://github.com/wooorm/franc
Canonical: https://ross.abutalabs.com/products/franc
Homepage: https://wooorm.com/franc/
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, natural-language, language-detection, nlp, natural, language, detection, detect, classification, classify
Last push: 2024-06-12T22:48:23+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4428, "days_push": 812, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4411, forks 182 (observed 2026-08-28T04:08:48.508526+00:00)

## What it is
franc is a JavaScript library that detects the natural language of text, supporting 82, 186, or 419 languages depending on the package variant. It also ships a CLI (franc-cli) for detecting languages from the command line.

## Use cases
- detect the language of a text snippet
- identify what language a document is written in
- classify text by language code (ISO 639)
- filter or route content by detected language
- detect language from the command line
- rank the most likely languages for a sample of text

## When to choose
- you need broad language coverage in JavaScript or Node.js
- you have reasonably long text samples (franc is accurate on larger documents)
- you want a simple ESM library with an optional CLI

## When to avoid
- you need reliable detection on very short strings or single words
- you need language detection in a non-JavaScript stack
- you need per-language model tuning beyond allow/ignore lists

## Facets
- artifact type: library
- maturity: stable
- function: nlp, cli
- domain: developer-tools
- platform: browser, cli, cross-platform
- tags: language-detection, esm, javascript, language-identification, natural-language-processing, nodejs, deno

## Member repositories
- wooorm/franc (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:48.508526+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:21:03.589055+00:00, confidence not recorded.
  - readme: https://github.com/wooorm/franc (fetched 2026-08-28T04:08:48.508526+00:00, sha c0a655dc3eb5)
  - homepage: https://wooorm.com/franc/ (fetched 2026-08-29T09:09:06.149437+00:00, sha 33c1f1f316e0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
