patrickschur/language-detection

A language detection library for PHP. Detects the language from a given text string.

44
/ 100
Emerging

Built on n-gram analysis with pre-trained language profiles, it compares input text against 110 language models stored as PHP serialized data for performance. Supports flexible filtering via whitelist/blacklist methods, custom tokenizers, and method chaining to refine results; requires PHP 7.4+ and the mbstring extension.

847 stars. No commits in the last 6 months.

Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 18 / 25

How are scores calculated?

Stars

847

Forks

85

Language

PHP

License

MIT

Last pushed

Mar 25, 2025

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/nlp/patrickschur/language-detection"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.