Text::...b::Node(3pm)

πŸ’– Text::MeCab::Node β€” the manual, bestie edition πŸ’–

okay so real quick: the header on this page is the very squished Text::...b::Node(3pm) (that's the Text::MeCab::Node page, she's just got a long name and a narrow column, we've all been there πŸ’…), and it lives under User Contributed Perl Documentation. Anyway. Sit down, grab a strawberry πŸ“, we're learning nodes.


✨ NAME ✨

Text::MeCab::Node β€” the MeCab Node Object. That's her. That's the whole name. iconic, concise, no notes.


🌸 SYNOPSIS 🌸

  use Text::MeCab;
  my $mecab = Text::MeCab->new();
  my $node  = $mecab->parse($text);

  $node->id;
  $node->surface;
  $node->length;
  $node->rlength;
  $node->feature;
  $node->next;
  $node->prev;
  $node->rcattr;
  $node->lcattr;
  $node->stat;
  $node->isbest;
  $node->alpha;
  $node->beta;
  $node->prob;
  $node->wcost;
  $node->cost;

  $node->format($mecab);

like. look at that. sixteen little getters and one format and honestly? she ate πŸ”₯


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so Text::MeCab::Node is the wrapper around the mecab node structure β€” the thing you get handed back when you parse some text. That's it. That's the whole job. She holds one node and she holds it beautifully. πŸ’–


πŸ‘‘ METHODS πŸ‘‘

πŸ’… format($mecab)

you give her a mecab instance, and she formats the node according to whatever the option arguments said β€” think stuff like --node-format. so basically: you bring the mecab, she brings the formatting. a collaboration. a duet. 🫢✨


🌈 SEE ALSO 🌈

  • Text::MeCab β€” the parent, the origin story, the main character πŸ‘‘

and that's the whole page, bestie, no cap. it came from perl v5.42.3 dated 2026-08-20, so when you cite her, cite her right. mwah. πŸ’œπŸŽ€

πŸ“¦ where this page comes from