# saffsd/langid.py

Stand-alone language identification system

Repository: https://github.com/saffsd/langid.py
Canonical: https://ross.abutalabs.com/products/langidpy
Language: Python
License: NOASSERTION
License Family: other
Last push: 2020-01-01T10:49:30+00:00

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

## Adoption (not part of the score)
Stars 2462, forks 318 (observed 2026-08-28T04:06:53.518713+00:00)

## What it is
langid.py is a standalone language identification tool that classifies text into one of 97 pre-trained languages. It works as a Python library, a command-line tool, and a WSGI-compliant web service in a single file with minimal dependencies.

## Use cases
- detect the language of a piece of text
- identify what language a document is written in
- classify text language from the command line
- serve language detection as a web API
- filter text by language in a data pipeline
- detect language of URLs or piped input

## When to choose
- you need fast, pre-trained language ID across many languages (97)
- you want a single-file tool with minimal dependencies (just numpy)
- you need both CLI and library usage
- you want to deploy language detection as a web service

## When to avoid
- you need language identification for languages outside the 97 supported
- you need to train a custom model on your own domain data (training tools are Python 2 only)
- you need actively maintained software with recent releases
- you need state-of-the-art accuracy on short or mixed-language text

## Facets
- artifact type: library
- maturity: maintenance
- function: nlp, cli, http-server
- domain: developer-tools
- platform: python, cli, cross-platform
- tags: language-identification, langid, text-classification, wsgi, standalone, natural-language-processing, command-line

## Member repositories
- saffsd/langid.py (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:53.518713+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-30T02:29:18.943525+00:00, confidence not recorded.
  - readme: https://github.com/saffsd/langid.py (fetched 2026-08-28T04:06:53.518713+00:00, sha ba2cfd4ce679)
- Data as of 2026-08-30T08:39:29.467469+00:00.
