View Source SpellChex.Dictionary (spell_chex v0.1.0)

Module used to create a dictionary of words in a GenServer.

This module must be started by the host application before it can be used.

Summary

Functions

Returns a specification to start this module under a supervisor.

Determines if a given word is in the list of known words.

Functions

Link to this function

child_spec(init_arg)

View Source (since 1.0.0)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

exists?(word)

View Source (since 1.3.0)

Determines if a given word is in the list of known words.

Returns true or false.

Examples

iex> SpellChex.exists?("dog")
true

iex> SpellChex.exists?("asdfas")
false
Link to this function

start_link(opts \\ [])

View Source (since 1.0.0)