Add `/tokenize` API endpoint (#2162)
* Add tokenize API endpoint to native messaging interface
- Add new 'tokenize' action to YomitanApi for text segmentation
- Uses internal parseText with fixed scanLength of 32 characters
- Returns full parsing results with readings and dictionary info
- Useful for external applications needing Japanese text tokenization
* Make scanLength configurable in tokenize endpoint
- Add scanLength as optional parameter (defaults to 10)
- Allows callers to customize tokenization granularity
- Shorter lengths for faster processing, longer for compound words
* add decriptive errors, remove default
authored by