Juman(3pm)

okay so bestie 💖 you just opened up Juman(3pm), a User Contributed Perl Documentation page, and it's literally the group chat about doing morphological analysis from Perl. strap in, it's short, it's cute, and yes we're keeping every single detail, no cap. 🎀


🌸 NAME 🌸

Juman — the module that does morphological analysis (形態素解析, the whole point ✨).


✨ SYNOPSIS ✨

use Juman;
$juman = new Juman;
$result = $juman->analysis( "この文を形態素解析してください." );
print $result->all();

💖 DESCRIPTION 💖

Juman is a module for using the morphological analyzer JUMAN from Perl. that's the vibe. 🦋

If all you wanna do is plain, no-drama morphological analysis, Juman::Simple is right there for you. Juman::Simple is a wrapper around the Juman module, designed so you can use the morphological analyzer way more easily. lowkey the easy mode.


🎀 CONSTRUCTOR 🎀

The constructor that makes a Juman object accepts the following arguments. she's got options, we love that. 👑

Synopsis

$juman = new Juman
           [ -Server        => string,]
           [ -Port          => integer,]
           [ -Command       => string,]
           [ -Timeout       => integer,]
           [ -Option        => string,]
           [ -Rcfile        => filename,]
           [ -IgnorePattern => string,]

Options

here's what each argument actually means, no gatekeeping 🫶

  • -Server — the hostname of the JUMAN server. if you leave it out, the server named by the JUMANSERVER environment variable gets used instead. and if the env var isn't set either? Juman just gets called as a child process. girl's flexible like that. 💅
  • -Port — the server's port number.
  • -Command — the executable filename of Juman. this is the one that gets referenced when you're not using a Juman server.
  • -Timeout — how long you wait when communicating with the server or with the child process. patience is a virtue bestie 🧚
  • -Option — the command line arguments used when running JUMAN. if you omit it, the value of $Juman::DEFAULT{option} is used.

that said — for the -r option that specifies a config file, and the -i option that specifies the line-head pattern ignored by KNP, you should specify those individually with -Rcfile and -IgnorePattern respectively. do not try to sneak them in here, it's not the move 🙈

  • -Rcfile — the option that specifies JUMAN's config file.
this option and using a JUMAN server frequently do not get along. especially, a config file that specifies a dictionary different from the one the server is using will not work as intended. fr fr, it just won't. 😭
  • -IgnorePattern — the line-head pattern that gets ignored by JUMAN.

🔥 METHODS 🔥

  • analysis( STR ) — morphologically analyzes the given string STR and returns the result as a Juman::Result object. boom, analyzed. ✨
  • juman ( STR ) — an alias of analysis.

🦋 ENVIRONMENT 🦋

  • JUMANSERVER — if the environment variable JUMANSERVER is set, the host it names is used as the Juman server.

👑 SEE ALSO 👑

  • Juman::Result
  • Juman::Simple

💫 HISTORY 💫

This module is the completely rewritten version of the original module written by Taku Kudoh <taku-ku@is.aist-nara.ac.jp>. glow-up of the century honestly. 🌈


🌟 AUTHOR 🌟

TSUCHIYA Masatoshi <tsuchiya@pine.kuee.kyoto-u.ac.jp>


For use and redistribution, please follow GPL2 or the Artistic License. (利用及び再配布については GPL2 または Artistic License に従ってください。 — the original said it, we're keeping it, periodt.)


😭 POD ERRORS 😭

Hey! The above document had some coding errors, which are explained below:

  • Around line 13: Non-ASCII character seen before =encoding in '形態素解析を行うモジュール'. Assuming UTF-8
  • Around line 49: You can't have =items (as at line 53) unless the first thing after the =over is an =item

okay and that's the whole page 💖 this was Juman(3pm), brought to you by perl v5.40.1, dated 2026-02-11 — which basically makes the footer's birthday 2026-02-11 and its whole personality perl v5.40.1. slay, go analyze some morphemes, bestie. 🎀✨👑 </answer>

📦 where this page comes from