KoreanDictionary
Docs: https://hexdocs.pm/chinese_dictionary.
How to use
Get your key from https://krdict.korean.go.kr/openApi/openApiInfo (it's free!)
Add the key to config.exs
config :korean_dictionary, key: "YOUR_KEY"
Add to mix.exs
def deps do
[
{:korean_dictionary, "~> 0.1.0"}
]
end
In your module
alias KoreanDictionary
For English word definitions
KoreanDictionary.korean_to_english("한국어")
which will return a list with tuples {word, definition}
[{"Korean; Korean language", "The language used by the Korean people."}]
For English sentences
KoreanDictionary.korean_to_english_example_sentences("공부하다")
which will return a list of example sentences
[
"이 오페라는 한국어로 공연한대.",
"한국어에는 특별한 나이를 가리키는 말이 여럿 있다.",
"한국어는 강세가 없어서 나는 강세를 가진 언어를 배우는 게 어려웠다."
]