speller

Looks for correct spelling. Looks a distance of up to two. This does an exhaustive search, so can potentially be very slow.

speller
(
alias dg
)
(
const(char)[] seed
)
if (
isSearchFunction!dg
)

Parameters

seed const(char)[]

wrongly spelled word

dg

search delegate of the form T delegate(const(char)[] p, out int cost)

Return Value

Type: auto

T.init = no correct spellings found, otherwise the value returned by dg() for first possible correct spelling

Meta