mecab

Japanese morphological analyzer and part-of-speech tagger

brewmacoslinux
Try with needOr install directly
Source

About

Yet another part-of-speech and morphological analyzer

Commands

mecabmecab-config

Examples

Analyze Japanese text and display morphological breakdown$ echo '太郎は花子に本を渡した。' | mecab
Parse text with specific output format (wakati mode for word segmentation)$ echo '自然言語処理' | mecab -Owakati
Analyze file and save results to output file$ mecab input.txt -o output.txt