///|
fn main {
let dictionary = @lib.parse_dic("3\nexample\ncreate/U\nhello\n").unwrap()
let config = @lib.parse_aff("PFX U Y 1\nPFX U 0 un .\nMAXNGRAMSUGS 2\n").unwrap()
let check = @lib.spell(dictionary, config, "uncreate")
println("uncreate accepted: " + check.accepted.to_string())
let suggestions = @lib.suggest(dictionary, config, "exsample", 3)
println("suggestions:")
for suggestion in suggestions {
println(
" " + suggestion.word + " (" + suggestion.distance.to_string() + ")",
)
}
}