From de00a14999ffb9d67813a719eeb651e8fb730510 Mon Sep 17 00:00:00 2001 From: gooosedev <143697261+gooosedev@users.noreply.github.com> Date: Mon, 8 Sep 2025 10:59:11 +0200 Subject: [PATCH] =?UTF-8?q?Fixes=20an=20issue=20in=20juman2mecab.pl=20when?= =?UTF-8?q?=20handling=20=E7=84=A1=E6=B4=BB=E7=94=A8=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mecab-jumandic/script/juman2mecab.pl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mecab-jumandic/script/juman2mecab.pl b/mecab-jumandic/script/juman2mecab.pl index fb05d9a..5dbb9b5 100755 --- a/mecab-jumandic/script/juman2mecab.pl +++ b/mecab-jumandic/script/juman2mecab.pl @@ -69,6 +69,16 @@ sub convert { return $result; } + # special case for 無活用型 + if ($ctype eq "無活用型"){ + my $result =""; + for (@$surface) { + $result .= sprintf ("%s,0,0,0,%s,%s,%s,*,%s,%s,%s\n", + $_, $pos1, $pos2, $ctype, $_, $reading, $meaning); + } + return $result; + } + my $result = ""; for my $s (@$surface) { my $lex = $s;