juman

Japanese morphological analyzer that segments text into words

brewmacoslinux
Try with needOr install directly
Source

About

Japanese morphological analysis system

Commands

juman

Examples

Analyze Japanese text from stdin$ echo '日本語を解析します。' | juman
Analyze text from a file$ juman < input.txt
Display output with detailed morphological information$ echo '形態素解析' | juman -v