class

Hunspell

Inherits Reference / Object

Constants

BULK_METHODS = ["suggest", "suffix_suggest", "stem", "analyze"]
VERSION = {{ (`shards version /tmp/tmp.oaAhnl/src/src/hunspell`).chomp.stringify }}

Constructors

new(aff_path : String, dict_path : String)
Source
new(handle : LibHunspell::Hunhandle)
Source
new(locale : String)
Source

Class methods

directories
Source
directories=(directories : Array(String))
Source

Instance methods

add(word : String, example : String) : Int32

Adds a word to the dictionary with affix flags.

Source
add(word : String) : Int32

Adds a word to the dictionary.

Source
analyze(word : String) : Array(String)

Morphological analysis of the word

Source
bulk_analyze(words : Array(String)) : Hash(String, Array(String))
Source
bulk_stem(words : Array(String)) : Hash(String, Array(String))
Source
bulk_suffix_suggest(words : Array(String)) : Hash(String, Array(String))
Source
bulk_suggest(words : Array(String)) : Hash(String, Array(String))
Source
close
Source
encoding

Returns dictionary encoding

Source
finalize
Source
remove(word : String) : Int32

Removes a word to the dictionary.

Source
spell?(word : String) : Bool

Check if a particular word is in the dictionary

Source
stem(word : String) : Array(String)
Source
suffix_suggest(word : String) : Array(String)
Source
suggest(word : String) : Array(String)

Search suggestions

Source
version
Source