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