Learn R Programming

kanjistat (version 0.14.1)

lookup: Look up kanji

Description

Return readings and meanings or information from kbase or kmorph.

Usage

lookup(kanji, what = c("readmean", "basic", "morphologic"))

Value

If what is "readmean" the information is output with cat and there is no return value (invisible NULL) In the other cases the appropriate subsets of the tables kbase and kmorph are returned

Arguments

kanji

a (vector of) character strings containing kanji.

what

the sort of information to display.

Author

Dominic Schuhmacher schuhmacher@math.uni-goettingen.de

Details

This is a very basic interface for a quick lookup information based on exact knowledge of the kanji (provided by a Japanese input method or its UTF-8 code). Most of the information is based on the KANJIDIC2 file by EDRDG (see thank you page) Please use one of the many excellent online kanji dictionaries (see e.g.) more sophisticated lookup methods and more detailed results.

Examples

Run this code
lookup(c("\u6674", "\u66c7", "\u96e8"))  
lookup("\u6674\u66c7\u96e8")   # same

Run the code above in your browser using DataLab