class Hunspell
- Hunspell
- Reference
- Object
Defined in:
hunspell.crhunspell/version.cr
Constant Summary
-
BULK_METHODS =
["suggest", "suffix_suggest", "stem", "analyze"]
-
VERSION =
{{ (`shards version /srv/crystaldoc.info/github-mamantoha-crystal-hunspell-v0.8.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, example : String) : Int32
Adds a word to the dictionary with affix flags.
-
#add(word : String) : Int32
Adds a word to the dictionary.
-
#analyze(word : String) : Array(String)
Morphological analysis of the word
- #bulk_analyze(words : Array(String)) : Hash(String, Array(String))
- #bulk_stem(words : Array(String)) : Hash(String, Array(String))
- #bulk_suffix_suggest(words : Array(String)) : Hash(String, Array(String))
- #bulk_suggest(words : Array(String)) : Hash(String, Array(String))
- #close
-
#encoding : String
Returns dictionary encoding
- #finalize
-
#remove(word : String) : Int32
Removes a word to the dictionary.
-
#spell?(word : String) : Bool
Check if a particular
word
is in the dictionary - #stem(word : String) : Array(String)
- #suffix_suggest(word : String) : Array(String)
-
#suggest(word : String) : Array(String)
Search suggestions
- #version : String