class Hunspell

Defined in:

hunspell.cr
hunspell/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

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(aff_path : String, dict_path : String) #

[View source]
def self.new(handle : LibHunspell::Hunhandle) #

[View source]
def self.new(locale : String) #

[View source]

Class Method Detail

def self.directories : Array(String) #

[View source]
def self.directories=(directories : Array(String)) #

[View source]

Instance Method Detail

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

Adds a word to the dictionary with affix flags.


[View source]
def add(word : String) : Int32 #

Adds a word to the dictionary.


[View source]
def analyze(word : String) : Array(String) #

Morphological analysis of the word


[View source]
def bulk_analyze(words : Array(String)) : Hash(String, Array(String)) #

[View source]
def bulk_stem(words : Array(String)) : Hash(String, Array(String)) #

[View source]
def bulk_suffix_suggest(words : Array(String)) : Hash(String, Array(String)) #

[View source]
def bulk_suggest(words : Array(String)) : Hash(String, Array(String)) #

[View source]
def close #

[View source]
def encoding : String #

Returns dictionary encoding


[View source]
def finalize #

[View source]
def remove(word : String) : Int32 #

Removes a word to the dictionary.


[View source]
def spell?(word : String) : Bool #

Check if a particular word is in the dictionary


[View source]
def stem(word : String) : Array(String) #

[View source]
def suffix_suggest(word : String) : Array(String) #

[View source]
def suggest(word : String) : Array(String) #

Search suggestions


[View source]
def version : String #

[View source]