getlang and lingua-go
These are direct competitors offering mutually exclusive solutions for language detection in Go, with lingua-go providing significantly superior accuracy through probabilistic n-gram analysis compared to getlang's simpler statistical approach.
About getlang
rylans/getlang
Natural language detection package in pure Go
Quickly identify the language of any text without needing an internet connection. You provide text in an unknown language, and the system tells you what language it is (like Polish or Spanish) with a confidence score. This is useful for developers building applications that need to process or categorize text from various international sources.
About lingua-go
pemistahl/lingua-go
The most accurate natural language detection library for Go, suitable for short text and mixed-language text
This tool helps you automatically identify the language of a text, whether it's a short phrase, a single word, or a longer document. It takes in text written in one of 75 supported languages and tells you which language it is. This is useful for anyone processing multilingual text, like customer service managers routing emails or data analysts preparing text for further analysis.
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work