Skip to contents

Return readings and meanings or information from kbase or kmorph.

Usage

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

Arguments

kanji

a (vector of) character strings containing kanji.

what

the sort of information to display.

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

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.

Author

Dominic Schuhmacher schuhmacher@math.uni-goettingen.de

Examples

lookup(c("晴", "曇", "雨"))  
#> 晴 --> ON: セイ | kun: は.れる, は.れ, は.れ-, -ば.れ, は.らす | nanori: はる, はれ
#>        meaning: clear up
#> 曇 --> ON: ドン | kun: くも.る | nanori: ど, ずみ
#>        meaning: cloudy weather, cloud up
#> 雨 --> ON: ウ | kun: あめ, あま-, -さめ | nanori: 
#>        meaning: rain
lookup("晴曇雨")   # same
#> 晴 --> ON: セイ | kun: は.れる, は.れ, は.れ-, -ば.れ, は.らす | nanori: はる, はれ
#>        meaning: clear up
#> 曇 --> ON: ドン | kun: くも.る | nanori: ど, ずみ
#>        meaning: cloudy weather, cloud up
#> 雨 --> ON: ウ | kun: あめ, あま-, -さめ | nanori: 
#>        meaning: rain