Juman::Morpheme(3pm)

💖 NAME 💖

Juman::Morpheme — 形態素オブジェクト in Juman ✨

okay bestie, this is the manual page for Juman::Morpheme, section 3pm, filed under User Contributed Perl Documentation. It's the morpheme object — a lil Perl class that holds one morpheme's whole personality. 🎀

Real talk before we start: the original file's encoding is a whole mess — the Japanese got mangled into CP1252 garbage (UTF-8 bytes read wrong, the classic 🫠). I decoded it back to actual Japanese for you, so the words below are the ones that were meant to be there. The POD ERRORS section at the bottom is the receipt. 💀

✨ SYNOPSIS ✨

$m = new Juman::Morpheme( "解析 かいせき 解析 名詞 6 サ変形詞 2 * 0 * 0" );

one line of Juman output goes in, one morpheme object comes out. that's it, that's the whole thing. periodt 💅


🌸 DESCRIPTION 🌸

形態素の各種情報を保持するオブジェクト.

translation for the girlies: it's the object that holds all the assorted info about a morpheme. a little container, but make it linguistics. 🦋


🎀 CONSTRUCTOR 🎀

new ( SPEC, ID )

第1引数 SPEC に Juman の出力を代入して呼び出すと,その行の内容を解析し,相当する形態素オブジェクトを生成する.

so: call it with Juman's output as the first argument SPEC, and it parses the contents of that line and generates the morphme object that corresponds to it. lowkey elegant, highkey useful. 🌟


💅 METHODS 💅

every single one, no skips, bestie. 🫶

  • midasi — 形態素の見出しを返す. hands you the morpheme's 見出し (its headword / surface form).
  • yomi — 形態素の読みを返す. hands you the morpheme's 読み (how it's read).
  • genkei — 形態素の原形を返す. hands you the morpheme's 原形 (its base/dictionary form).
  • hinsi — 形態素の品詞を返す. hands you the morpheme's 品詞 (part of speech).
  • hinsi_id — 形態素の品詞番号を返す. hands you the morpheme's 品詞番号 (the part-of-speech number).
  • bunrui — 形態素の細分類を返す. hands you the morpheme's 細分類 (fine-grained subclassification).
  • bunrui_id — 形態素の細分類番号を返す. hands you the morpheme's 細分類番号 (the subclassification number).
  • katuyou1 — 形態素の活用型を返す. hands you the morpheme's 活用型 (conjugation type).
  • katuyou1_id — 形態素の活用型番号を返す. hands you the morpheme's 活用型番号 (the conjugation-type number).
  • katuyou2 — 形態素の活用形を返す. hands you the morpheme's 活用形 (conjugation form).
  • katuyou2_id — 形態素の活用形番号を返す. hands you the morpheme's 活用形番号 (the conjugation-form number).
  • imis — 形態素の意味情報を返す.意味情報は,Juman に "-e2" オプションを指定して実行すると得られる. hands you the morpheme's 意味情報 (meaning info). and heads up bestie, that meaning info is the stuff you only get when you run Juman with the "-e2" option specified. 🫠
  • push_imis — 意味情報を追加する. adds 意味情報 (meaning info) onto it.
  • repname — 形態素の代表表記を返す. hands you the morpheme's 代表表記 (representative notation).
  • repnames — 形態素の代表表記(曖昧性がある場合は「?」で連結)を返す.引数(≠ 0)を与えると、音訓解除した場合の曖昧性は無視する. hands you the morpheme's 代表表記, and when there's ambiguity those get joined up with ?. if you give it an argument (≠ 0), then the ambiguity from the 音訓解除 case gets ignored. read it twice, it's fine. 💀
  • get_doukei_reps — 形態素の同型異義語の代表表記を返す. hands you the 代表表記 of the morpheme's 同型異義語 (same-form, different-meaning words).
  • make_repname — 形態素の代表表記を作る. builds the morpheme's 代表表記. not gets, makes. she's a craftswoman. 💅
  • kanou_dousi — 形態素の可能動詞を返す. hands you the morpheme's 可能動詞 (potential verb).
  • push_doukei( DOUKEI ) — 同形異義語 DOUKEI を登録する. registers the 同形異義語 DOUKEI. (yes the argument is part of the signature, keep it. ✨)
  • doukei — 形態素の同形異義語のリストを返す. hands you the list of the morpheme's 同形異義語.
  • id — コンストラクタを呼び出したときに指定した ID を返す. hands you the ID you specified back when you called the constructor. it remembered. iconic. 👑
  • spec — 形態素オブジェクトを文字列に変換する. converts the morpheme object into a string. 🦋

🌈 SEE ALSO 🌈

  • Juman::Katuyou
  • Juman::KULM::Morpheme

go read those too, bestie, the lore runs deep 🫶


👑 AUTHOR 👑

土屋 雅稔 <tsuchiya@pine.kuee.kyoto-u.ac.jp>

(that's 土屋雅稔 — shoutout to the author, actual legend 🌟)


💀 POD ERRORS 💀

Hey! The above document had some coding errors, which are explained below:
Around line 11: Non-ASCII character seen before =encoding in 'å½¢æ…‹ç´ ã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆ'. Assuming CP1252

(that garbled bit is 形態素オブジェクト, bless it 😭 — see what I meant about the encoding? the pod parser saw it and assumed CP1252, which is exactly how we got here.)

Around line 377: =over without closing =back

yep. an =over that never closed its =back. she left the group chat without saying bye. 🫠


<div align="center">

</div>

okay bestie that's the whole page!! 📄✨ rendered by perl v5.40.1, dated 2026-02-11, and now archived in your brain forever. no cap, you're a Juman::Morpheme girly now. slay, hydrate, and go parse something. 💖🦋🎀


📦 where this page comes from