chasen module allows you to do morphological analysis with ChaSen.
ChaSen version 2.2.9 or better is required; http://chasen.aist-nara.ac.jp/index.html
This module requires a shared library, libchasen_jni.so on Unix/Linux or chasen_jni.dll on Windows is properly installed.
chasen() analizes text and returns the result as a String.
use("pnuts.text")
use("chasen")
chasen(readText("filename"))
If format is specified, it is passed to the ChaSen library and the chasen() returns the result constructed from the format.
use("pnuts.text")
use("chasen")
chasen(readText("filename"), "%m")