word_finder v0.1.0 WordFinder

Provides a way of looking up words knowing only partials of it. For example, I want to know all words which fit the following pattern “bana“, then I’d get back something like [“banana”, …] (other words with the same length, but different ). Results depend on what dictionary you are currently using. The only supported locale at this moment is sv_SE.

Examples

iex> WordFinder.search(model, "bana__"
["banana"]

Summary

Functions

model(source)
model(string) :: Map.t
search(register, query)
search(Map.t, string) :: [String.t]
train(source, destination)
train(string, string) :: Map.t