Juman::Process(3pm)

💖 NAME 💖

Juman::Process — it's a process object, bestie 💅 (the original says プロセスオブジェクト and yes she's bilingual, we stan).

This page lives in the User Contributed Perl Documentation corner of the 3pm manuals, iykyk.


🎀 METHODS 🎀

setup( OPTION, DEFAULT )

okay so you call this with two things: a reference to the hash of options the user picked out, and a reference to the hash of default values. Hand both over as arguments and it will set up the instance variables all nice and appropriately. That's it, that's the whole job. Slay. ✨

open

Spawns a child process, and then hands you back the socket that talks to that process. Main character move, fr fr. 🦋

close

Closes the communication socket to the child process. Say bye bestie 👋

pattern

Fishes out the regular-expression pattern you need to detect the end of the morphological-analysis result / syntactic-analysis result. Terminal detection, but make it regex. 🔥


✨ STRUCTURE ✨

So the following internal variables are all chillin' in the hash as members, no cap:

  • $this->{OPTION} — the hash for the options
  • $this->{SOCKET} — the hash for the socket that communicates with JUMAN
  • $this->{PATTERN} — the regular expression used to detect the end of the analysis result

🌸 MEMO 🌸

For Perl-5.8 and later, when you're talking to a server over the network, the character code specified by the "encoding" pragma is what gets used. So like, set your encoding, bestie, or the vibes get weird. 💜


💀 POD ERRORS 💀

Girl. 💀 The document above had some coding errors and they are explained right here:

Around line 11:

Non-ASCII character seen before =encoding in 'プãƒ‐
セスオブジェクト'. Assuming CP1252

Around line 36:

You forgot a '=back' before '=head1'
not the =back erasure 😭 iconic of us honestly

And that's the whole page, bestie 🫶 — brought to you by perl v5.40.1, dated 2026-02-11, filed under Juman::Process(3pm). Go set those instance variables appropriately. Periodt. 👑

📦 where this page comes from