# greyblake/whatlang-rs

Natural language detection library for Rust. Try demo online: https://whatlang.org/

Repository: https://github.com/greyblake/whatlang-rs
Canonical: https://ross.abutalabs.com/products/whatlang-rs
Homepage: https://whatlang.org/
Language: Rust
License: MIT
License Family: permissive
Topics: language, rust, nlp, text-analysis, text-classification, classifier, ai, detect-language, language-recognition, whatlang, algorithm, text-classifier, rustlang
Last push: 2025-12-24T21:40:48+00:00

## Health v2 (maintenance only)
Score: 49/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 58, release rhythm 8, longevity 100
- inputs: {"age_days": 3588, "days_push": 252, "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 1087, forks 119 (observed 2026-08-28T04:03:32.392304+00:00)

## What it is
Whatlang is a lightweight Rust library for detecting the natural language of a text, supporting 70 languages plus script recognition. It is fast, pure Rust, and provides confidence and reliability information.

## Use cases
- detect the language of a text in rust
- identify which language a user query is written in
- detect script like latin or cyrillic from text
- add language recognition to a search engine
- classify text by language before routing to translation
- filter out texts not in a supported language

## When to choose
- you need fast, lightweight language detection in a Rust project
- you need both language and script identification
- you want a pure-Rust dependency with no ML runtime
- you need confidence/reliability scores for detection results

## When to avoid
- you need detection for languages outside the 70 supported ones
- you need state-of-the-art accuracy on short or mixed-language texts
- your project is not in Rust and no port is available

## Facets
- artifact type: library
- maturity: stable
- function: nlp, parser
- domain: text-editors
- platform: rust, cross-platform
- tags: language-detection, text-classification, script-detection, rust-library, natural-language-processing, search

## Member repositories
- greyblake/whatlang-rs (main) score 49

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:32.392304+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-30T06:49:27.344289+00:00, confidence not recorded.
  - readme: https://github.com/greyblake/whatlang-rs (fetched 2026-08-28T04:03:32.392304+00:00, sha 608548d5a8ff)
- Data as of 2026-08-30T08:39:29.467469+00:00.
