betto_lang_detector 0.1.0 copy "betto_lang_detector: ^0.1.0" to clipboard
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 (matching betto_lexical's Stopwords set).
  • LanguageDetector.detect(String text) — returns Detected (a best guess plus a ranked list) or Undetermined (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.
0
likes
160
points
374
downloads

Documentation

API reference

Publisher

verified publisherbettongia.com

Weekly Downloads

A pure-Dart language detection library for Dart and Flutter applications.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#i18n

License

Apache-2.0 (license)

More

Packages that depend on betto_lang_detector