chasen module

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 (String text {, String format} )

chasen() analizes text and returns the result as a String.

e.g.
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.

e.g.
use("pnuts.text")
use("chasen")

chasen(readText("filename"), "%m")