A cli multi-tool for japanese. Forked from https://github.com/JojiiOfficial/jisho-cli
Find a file
Hiers 0d3bab226f Change data structure for stroke info
Hash sets' contains method running in O(1) time complexity speeds up
kanji radical search (not counting waiting for user input) by 15%
2025-01-02 10:29:32 +00:00
.img Update README 2024-12-26 08:49:44 +00:00
src Change data structure for stroke info 2025-01-02 10:29:32 +00:00
.gitignore initial commit 2021-02-07 22:51:54 +01:00
Cargo.lock Update version number and fix cargo.lock 2024-12-26 08:50:10 +00:00
Cargo.toml Update version number and fix cargo.lock 2024-12-26 08:50:10 +00:00
kanji_strokes Add stroke info file and Makefile 2024-12-25 00:26:44 +00:00
LICENSE initial commit 2021-02-07 22:51:54 +01:00
Makefile Provide windows support for new feature 2024-12-26 08:48:30 +00:00
README.md Update README 2024-12-26 08:49:44 +00:00

Yakudatsu (cli)

A simple cli tool to look up Japanese words using jisho.org's API. Additionally, searching for kanji by radicals and browsing tatoeba's database of example sentences is also available.

Jisho dictionary

Searching by radicals

Tatoeba sentences

Installation

Binaries are directly available from the release tab.

Compilation

Download source and run

make release
sudo make install

Usage

A readline wrapper like rlwrap is strongly recommended if using ykdt interactively (-i or empty input).

ykdt [<words to look up>]
ykdt :[<radicals in kanji>]
ykdt _[<expressions in  sentences>]

When looking up kanji, * (or ) can be used to add a radical that can't be easily typed, e.g. 气.

Sources

Dictionary definitions retrieved using jisho's API.

To search kanji by radicals, the radkfile needs to be installed in either ~/.local/share/ on Linux or ~\AppData\Local\ on Windows. Kanji stroke information extracted from kanjidic2.

Example sentences taken from tatoeba.