lingua
lingua copied to clipboard
The most accurate natural language detection library for Java and the JVM, suitable for long and short text alike
According to the documentation -- https://javadoc.io/doc/com.github.pemistahl/lingua/0.3.0/com/github/pemistahl/lingua/api/LanguageDetector.html -- and the project's README -- https://github.com/pemistahl/lingua/blob/main/README.md -- the code below should return a Language object: final LanguageDetector detector = LanguageDetectorBuilder.fromLanguages(ENGLISH, FRENCH, GERMAN, SPANISH).build();...
I've been maintaining four implementations of this library, namely Go, Rust, Python, and this one in Kotlin. Due to serious time constraints, there will only be updates for the Rust...