google / budoux

https://google.github.io/budoux/
Apache License 2.0
1.44k stars 32 forks source link

Support `sep` option in CLI #793

Open tushuhei opened 1 day ago

tushuhei commented 1 day ago

Current BudouX CLI outputs phrases separated by lines. Users may want to use arbitrary separators such as / to see how BudouX works on their data. This can be done by combining the CLI with the tr command (e.g. npx budoux 今日は天気です | tr '\n' '/') actually, but this solution is not so obvious. Supporting arbitrary separator might be more intuitive and user friendly.