The author needed language detection for a past project and previously used the kju2 fork of the Optimaize library, but this fork is now in read-only mode. Lingua, another Java library, is actively updated and claims high accuracy, but was slightly slower in testing and failed to identify Malay text correctly. Both libraries exhibited inconsistent performance for English, with detection times ranging from milliseconds to tens of thousands of milliseconds. A third-party Detect Language API offers support for 165 languages and claims high accuracy, requiring an API key and offering free and premium plans. The author seeks insights from others using Java and ColdFusion/CFML for language detection, sharing their experiences and preferred libraries or APIs. The provided data includes language detection results from kju2, Lingua, and the API for various languages, showcasing the performance of each approach. The data highlights that while kju2 appears faster, Lingua offers higher accuracy for most languages tested, except for Malay. The API offers a wider language support but requires an API key. The author's experience and provided data can serve as valuable reference for developers seeking suitable language detection solutions.
dev.to
dev.to
Create attached notes ...
