word_thai_split 1.0.0
word_thai_split: ^1.0.0 copied to clipboard
Simple Thai word segmentation SDK for Flutter & Dart
Changelog #
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