Packages

A Korean dictionary based on KRDict Supports multiple languages Requires an API key for KRDict (which is free) Get your key at https://krdict.korean.go.kr/openApi/openApiInfo

Current section

Files

Jump to
korean_dictionary lib korean_dictionary.ex
Raw

lib/korean_dictionary.ex

defmodule KoreanDictionary do
alias KoreanDictionary.KRDict
@moduledoc """
A Korean dictionary
Implements the KRDict
http://krdict.korean.go.kr/
"""
@doc """
Translate Korean to English
Returns the word definitions in a tuple {english word, definition}
"""
defdelegate korean_to_english(korean), to: KRDict
@doc """
Translate Korean to Korean
Returns the word definitions in a list
"""
defdelegate korean_to_korean(korean), to: KRDict
@doc """
Returns example sentences in a list
No translations per sentence are available
"""
defdelegate korean_example_sentences(korean), to: KRDict
end