patrickschur/language-detection
A language detection library for PHP. Detects the language from a given text string.
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.
Stars
847
Forks
85
Language
PHP
License
MIT
Category
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.
Higher-rated alternatives
pemistahl/lingua-py
The most accurate natural language detection library for Python, suitable for short text and...
indix/whatthelang
Lightning Fast Language Prediction 🚀
nickdavidhaynes/spacy-cld
Language detection extension for spaCy 2.0+
mbanon/fastspell
Targetted language identifier, based on FastText and Hunspell.
nitotm/efficient-language-detector-js
Fast and accurate natural language detection. Detector written in Javascript. Nito-ELD, ELD.