kanji_dictionary 1.0.4 kanji_dictionary: ^1.0.4 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.characters.first;
print(character.literal);
print(character.meanings[Language.english]);
print(character.readings[Reading.japaneseOnReading]);
print(character.readings[Reading.japaneseKunReading]);
print(character.difficulty.jlpt);
print(kanjiDictionary.charactersByDifficulty
.take(15)
.map((c) => c.literal)
.join(' '));
}