kanji_dictionary 1.0.5+1 kanji_dictionary: ^1.0.5+1 copied to clipboard
Dart implementation of KANJIDIC, a popular Kanji dictionary used by jisho.org.
example/kanji_dictionary_example.dart
import 'package:kanji_dictionary/kanji_dictionary.dart';
void main() async {
final kanjiDictionary = await KanjiDictionary.instance;
final character = kanjiDictionary.get('δΊ')!;
print(character.literal);
print(character.meanings[Language.english]);
print(character.readings[Reading.japaneseOn]);
print(character.readings[Reading.japaneseKun]);
print(character.difficulty.jlpt);
print(kanjiDictionary.charactersByDifficulty
.take(15)
.map((c) => c.literal)
.join(' '));
}