buruzaemon / natto

A Tasty Ruby Binding with MeCab
BSD 2-Clause "Simplified" License
143 stars 16 forks source link

Convert text including kanji and katakana to katakana only #77

Closed nguyenkiidu closed 2 years ago

nguyenkiidu commented 2 years ago

I'm getting an issue of converting 株式会社イースマイル to カブシキガイシャイースマイル is it possible? Thanks!

buruzaemon commented 2 years ago

Hello, @nguyenkiidu... This is not an issue for natto, this is a question about MeCab output. As such, I am closing this issue.

However, I suggest you look at the MeCab page on 出力フォーマット, as well as the natto Wiki page Appendix F: Output Formatting. You just need to use the %f option and take the 8th feature of the Chasen CSV output.

Hope that helps!