Lingua v0.4.0 Release NotesRelease Date: 2019-05-07 // over 2 years ago
🚀 This release took some time, but here it is.
- ➕ added 18 new languages: Afrikaans, Albanian, Basque, Bokmal, Catalan, Greek, Icelandic, Indonesian, Irish, Malay, Norwegian, Nynorsk, Slovak, Slovene, Somali, Tagalog, Vietnamese, Welsh
Language models are now lazy-loaded into memory upon first access and not already when an instance of
LanguageDetectoris created. This way, if the rule-based engine can filter out some unlikely languages, their language models are not loaded into memory as they are not necessary at that point. So the overall memory consumption is further reduced.
The fastutil library is used to compress the probability values of the language models in memory. They are now stored as primitive data types (
double) instead of objects (
Double) which reduces memory consumption by approximately 500 MB if all language models are selected.
- 🔧 The overall code quality has been improved significantly. This allows for easier unit testing, configuration and extensibility.
🐛 Bug Fixes
- 🛠 Reported bug #3 has been fixed which prevented certain character classes to be used on Android.
👷 Build system
- 👷 Starting from this version, Gradle is used as this library's build system instead of Maven. This allows for more customizations, such as in test report generation, and is a first step towards multiplatform support. Please take a look at this project's README to read about the available Gradle tasks.
✅ Test Coverage
- ✅ Test coverage has been extended from 24% to 55%.