View Source Wordnik.Word.TopExample (Wordnik v1.0.0)

find top-rated example for requested word

Wordnik Docs

Link to this section Summary

Types

map of optional parameters that can be passed to get_top_example/2 query

Functions

get top_example for requested word

Link to this section Types

@type top_example_params() :: %{optional(:use_canonical) => boolean()}

map of optional parameters that can be passed to get_top_example/2 query

Link to this section Functions

Link to this function

get_top_example(word, params \\ %{})

View Source
@spec get_top_example(String.t(), top_example_params()) ::
  {:error, String.t()} | {:ok, Word.Examples.example()}

get top_example for requested word

parameters

Parameters

  • use_canonical: boolean

example

Example

iex> get_top_example("verbose", %{use_canonical: true})

response

Response

t:Word.Examples.example/0

wordnik-docs

Wordnik Docs

https://developer.wordnik.com/docs#!/word/getTopExample