echo '走れ' | ./yapima2.pl {"id":1,"jsonrpc":"2.0","result":{"tokens":[["走れ","はしれ","走る","動詞","*","子音動詞ラ行","命令形"]]}}
echo '読み仮名だけ抜き出します' | ./yapima2.pl \ | jq -cr '[ .result.tokens[] | .[1] ] | join("")' よみがなだけぬきだします
echo '行番号と品詞です\n晩御飯が美味しい' | ./yapima2.pl \ | jq -cr '[ .id, [ .result.tokens[] | .[3] ] ] | flatten | @csv' 1,"名詞","名詞","助詞","名詞","判定詞" 2,"名詞","名詞","助詞","形容詞"
echo '文章から名詞だけ抽出して要約っぽく見せかけます' | ./yapima2.pl \ | jq -cr '[ .result.tokens[] | select(.[3] | contains("名詞")) | .[0] ] | join("")' 文章名詞抽出要約