patrickschur/language-detection
A language detection library for PHP. Detects the language from a given text string.
This tool helps you automatically identify the language of any text. You simply provide a piece of text, and it tells you which language it is written in, along with a confidence score. This is useful for anyone managing content, customer support, or data in multiple languages.
847 stars. No commits in the last 6 months.
Use this if you need to determine the language of text snippets, messages, or documents to route them correctly, categorize them, or process them further.
Not ideal if you need to detect very short phrases or single words, as accuracy improves with longer texts.
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
indix/whatthelang
Lightning Fast Language Prediction 🚀
nitotm/efficient-language-detector-js
Fast and accurate natural language detection. Detector written in Javascript. Nito-ELD, ELD.
pemistahl/lingua-py
The most accurate natural language detection library for Python, suitable for short text and...
nitotm/efficient-language-detector
Fast and accurate natural language detection. Detector written in PHP. Nito-ELD, ELD.
mbanon/fastspell
Targetted language identifier, based on FastText and Hunspell.