View Source Wordnik.Word.Etymologies (Wordnik v1.0.0)
etymologies for a given word
Link to this section Summary
Types
map of optional parameters that can be passed to get_etymologies/2
query
parsed JSON response to `get_etymologies/2` query
Functions
get etymologies for requested word
Link to this section Types
@type etymologies_params() :: %{optional(:use_canonical) => boolean()}
map of optional parameters that can be passed to get_etymologies/2
query
@type etymology() :: String.t()
parsed JSON response to `get_etymologies/2` query
Link to this section Functions
@spec get_etymologies(String.t(), etymologies_params()) :: {:error, String.t()} | {:ok, etymology()}
get etymologies for requested word
parameters
Parameters
- use_canonical: boolean
example
Example
iex> get_etymologies("verbose", [:use_canonical])
response
Response
t:Word.Etymologies.etymology/0