word_thai_split 1.0.2 copy "word_thai_split: ^1.0.2" to clipboard
word_thai_split: ^1.0.2 copied to clipboard

Simple Thai word segmentation SDK for Flutter & Dart

Changelog #

1.0.2 - 2026-01-29 #

Added #

  • Public facade API WordThaiSplit for clean and simple usage
  • Example project to satisfy pub.dev package validation
  • Complete Dartdoc comments for all public APIs

Changed #

  • Refactor internal implementation into lib/src/ (non-public API)
  • Improve package structure to align with Dart and pub.dev best practices

Fixed #

  • Resolve undefined symbol issues caused by incorrect imports/exports
  • Ensure dart pub publish --dry-run passes without warnings

Notes #

  • No breaking changes
  • Recommended upgrade for improved documentation and pub.dev score

1.0.1 - 2026-01-29 #

Added #

  • Public facade API (WordThaiSplit) for clean usage
  • Example project for pub.dev validation
  • Dartdoc comments for all public APIs

Changed #

  • Refactor internal implementation into src/ (non-public)
  • Improve package structure to follow Dart & pub.dev guidelines

Fixed #

  • Resolve undefined symbol issues caused by improper exports
  • Ensure compatibility with dart pub publish --dry-run

Notes #

  • No breaking changes
  • Recommended upgrade for pub.dev score and documentation quality

1.0.0 - 2026-01-29 #

Added #

  • Thai word segmentation using dictionary longest-match algorithm
  • Load Thai dictionary from JSON file
  • Support Arabic numbers (e.g. 1,000 / 1,211.50)
  • Convert Arabic numbers to Thai word tokens
    • Integer numbers (หนึ่ง, พัน, ร้อย, สิบ, เอ็ด)
    • Decimal numbers with จุด (e.g. 1.50 → หนึ่ง จุด ห้า ศูนย์)
  • Support Thai number words (หนึ่ง, สอง, ยี่, สิบ, ร้อย, พัน, หมื่น, แสน, ล้าน)
  • Benchmark tool (~10 µs per call at 10,000 runs)

Changed #

  • Convert package to pure Dart (no Flutter dependency)
  • Improve number tokenization logic for TTS / voice use cases

Performance #

  • Average execution time ~9–10 µs per call (local benchmark)

Notes #

  • This is the first stable release
  • Public API is considered stable for production use

0.0.1 - 2026-01-28 #

Added #

  • Initial prototype release
1
likes
160
points
191
downloads

Publisher

unverified uploader

Weekly Downloads

Simple Thai word segmentation SDK for Flutter & Dart

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on word_thai_split