Juman::Sexp(3pm)
💖 Juman::Sexp 💖
okay bestie so this is a page from the User Contributed Perl Documentation squad, and it's all about a little Perl module called Juman::Sexp. 🎀
✨ NAME ✨
Juman::Sexp — S式を読み込むモジュール 🌸
(translation vibe: it's the module that reads in S-expressions, iykyk)
🌈 SYNOPSIS 🌈
like, here's how you actually use it, no cap:
use Data::Dumper;
use Juman::Sexp qw/ parse /;
print &Dumper( &parse( file => "Noun.dic" ) );
iconic. that's the whole intro. 💅
🦋 DESCRIPTION 🦋
Juman::Sexp defines a function called parse ✨ — and that function is the whole point of this module. It reads the S式 (S-expression, if you don't speak the language) that gets used all up in Juman dictionaries and config files. slay.
👑 FUNCTIONS 👑
💜 parse
this is the function, the main character fr fr. You hand it a target and it parses that target as an S式. It accepts these options down below ⬇️
file => FILE— tells it which file to parse, bestie.string => STRING— tells it which string to parse.comment => STRING— this one specifies the comment-start string. and okay, important bit: if the thing you're parsing has, like, no comments at all, you pass an undefined value, like this:
Example:
&parse( file => "example.dat", comment => undef );
debug => BOOLEAN— tells it to print out debug info. very "let me see what's going on in there" energy. 🕵️
so say you wanna parse a string as your target — you'd do it like this, periodt:
Example:
&parse( string =>
"(名詞 (普通名詞 ((読み かめ)(見出し語 亀 かめ カメ))))" );
and in that case, the parse result that comes back to you looks exactly like this 💫
( [ '名詞',
[ '普通名詞',
[ [ '読み', 'かめ' ],
[ '見出し語', '亀', 'かめ', 'カメ' ]
]
]
] )
ate. 🍓
💀 AUTHOR 💀
TSUCHIYA Masatoshi <tsuchiya@pine.kuee.kyoto-u.ac.jp>
(we stan 🫶)
🌸 COPYRIGHT 🌸
利用及び再配布については GPL2 または Artistic License に従ってください。
(so basically: use it and redistribute it following GPL2 or the Artistic License — pick your fighter, bestie 💅)
😭 POD ERRORS 😭
not me having to tell you this but — hey! the doc above had some coding errors, and here's the tea on them:
Around line 12:
Non-ASCII character seen before =encoding in 'S式を読み込むモジュール'. Assuming UTF-8
(yeah it just assumed UTF-8, no cap. it's fine. it's giving "we move.") 🙈
okay that's the whole page!! it's the Juman::Sexp man page from perl v5.40.1, dated 2026-02-11 — love that for us, go parse some S式 bestie 💖✨🦋🎀
📦 where this page comes from
- ubuntu resolute: libjuman-perl 7.0-3.10build1
- ubuntu stonking: libjuman-perl 7.0-3.10build1
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms