betto_lang_detector 0.1.0
betto_lang_detector: ^0.1.0 copied to clipboard
A pure-Dart language detection library for Dart and Flutter applications.
Changelog #
0.1.0 #
Stable release
- Moved to Dart 3.13
0.1.0-dev.1 #
Initial development release of betto_lang_detector.
Features #
LanguageDetector.pureDart()— zero-dependency default: a Unicode script pre-filter plus a character n-gram model, covering 58 languages (matchingbetto_lexical'sStopwordsset).LanguageDetector.detect(String text)— returnsDetected(a best guess plus a ranked list) orUndetermined(nothing met the confidence threshold).LanguageDetector.dominantScript(String text)— cheap, script-only classification (ISO 15924 code) for tokenizer routing guard rails; does not run the n-gram stage.restrictTo— narrows the candidate language set, improving n-gram accuracy for callers who already know the plausible language set.- Pure Dart, zero runtime dependencies — no FFI, no native build, works identically on web, mobile, and desktop.