class Hunspell
- Hunspell
- Reference
- Object
Defined in:
hunspell.crhunspell/version.cr
Constant Summary
-
VERSION =
{{ (`shards version /srv/crystaldoc.info/github-mamantoha-crystal-hunspell-v0.7.0/src/hunspell`).chomp.stringify }}
Constructors
- .new(aff_path : String, dict_path : String)
- .new(handle : LibHunspell::Hunhandle)
- .new(locale : String)
Class Method Summary
Instance Method Summary
-
#add(word : String) : Int32
Adds a word to the dictionary.
-
#add_with_affix(word : String, example : String) : Int32
Adds a word to the dictionary with affix flags.
-
#analyze(word : String) : Array(String)
Morphological analysis of the word
- #close
-
#encoding : String
Returns dictionary encoding
- #finalize
-
#remove(word : String) : Int32
Removes a word to the dictionary.
-
#spellcheck(word : String) : Bool
Spellcheck word
- #stem(word : String) : Array(String)
- #suffix_suggest(word : String) : Array(String)
-
#suggest(word : String) : Array(String)
Search suggestions
Constructor Detail
Class Method Detail
Instance Method Detail
def add_with_affix(word : String, example : String) : Int32
#
Adds a word to the dictionary with affix flags.