This is a third-party script/app and is not created by the WaniKani team. By using this, you understand that it can stop working at any time or be discontinued indefinitely.
as requested by @jprspereira
For users of the self study script
This script adds a filter that lets you study a kanji’s visually similar kanji. It uses Lars Yenken’s PHD thesis data hosted on @acm2010’s github page to find a given kanji’s companions.
Before you can study a kanji’s similar kanji, you first have to create a list of kanji that you are having trouble with. You can do this by going to the script’s settings and typing some kanji into the input box at the top. The kanji you input will appear in the list below.
These are also the kanji which will appear in the self study quiz. You choose kanji from these to study by selecting them.
For developers
You can use the visually_similar_kanji
filter as any other ItemData
filter. The filter takes key/value pairs, where the key is the kanji and the value is set to true
.
Example
wkof.ItemData.get_items({wk_items: {filters: {visually_similar_kanji: {剤: true}}}}).then((data)=>{
console.log(data);
})
// Expected output
[0: {id: 897, object: "kanji", url: "https://api.wanikani.com/v2/subjects/897", data_updated_at: "2019-02-07T00:28:35.020617Z", data: {…}, …}
1: {id: 977, object: "kanji", url: "https://api.wanikani.com/v2/subjects/977", data_updated_at: "2019-02-07T00:28:35.020617Z", data: {…}, …}
2: {id: 1191, object: "kanji", url: "https://api.wanikani.com/v2/subjects/1191", data_updated_at: "2019-02-07T00:28:35.216565Z", data: {…}, …}
3: {id: 1348, object: "kanji", url: "https://api.wanikani.com/v2/subjects/1348", data_updated_at: "2019-02-07T00:28:35.216565Z", data: {…}, …}
4: {id: 1577, object: "kanji", url: "https://api.wanikani.com/v2/subjects/1577", data_updated_at: "2019-02-07T00:28:35.216565Z", data: {…}, …}
5: {id: 1668, object: "kanji", url: "https://api.wanikani.com/v2/subjects/1668", data_updated_at: "2019-02-07T00:28:35.216565Z", data: {…}, …}
6: {id: 1862, object: "kanji", url: "https://api.wanikani.com/v2/subjects/1862", data_updated_at: "2019-02-07T00:28:35.216565Z", data: {…}, …}
7: {id: 2135, object: "kanji", url: "https://api.wanikani.com/v2/subjects/2135", data_updated_at: "2019-02-07T00:28:35.326609Z", data: {…}, …}
8: {id: 2438, object: "kanji", url: "https://api.wanikani.com/v2/subjects/2438", data_updated_at: "2019-02-07T00:28:35.326609Z", data: {…}, …}
9: {id: 2445, object: "kanji", url: "https://api.wanikani.com/v2/subjects/2445", data_updated_at: "2019-02-07T00:28:35.326609Z", data: {…}, …}]
There is also a include_visually_similar_kanji
filter, which adds the similar kanji and their relative similarity info to any kanji in your request.
Example
wkof.ItemData.get_items({wk_items: {filters: {item_type: 'kan', include_visually_similar_kanji: true}}}).then((data)=>{
console.log(data[0].visually_similar_kanji); // The requested character is 一
})
// Expected output
[0: {kan: "十", score: 0.5}
1: {kan: "二", score: 0.5}
2: {kan: "七", score: 0.5}
3: {kan: "丁", score: 0.5}
4: {kan: "己", score: 0.333333}
5: {kan: "与", score: 0.333333}
6: {kan: "子", score: 0.333333}
7: {kan: "下", score: 0.333333}
8: {kan: "土", score: 0.333333}
9: {kan: "上", score: 0.333333}]
Available at
→ this place ←