Module voikko

Source
Expand description

This module contains the functions, types and structs of the crate.

Structs§

Dictionary
Information about an available dictionary
GrammarError
Grammar error
HyphenateError
Error hyphenating a string
InitError
Error in initializing libvoikko
Sentence
A sentence
Token
Tokenization unit
Voikko
A Voikko instance

Enums§

SentenceType
Type of a following sentence
SpellReturn
A spell check return value
TokenType
Type of token returned by [analyze()]

Functions§

list_dicts
Get a list of available dictionaries. Returns a vector of Dictionary structs.
list_supported_grammar_checking_languages
Same as list_supported_spelling_languages() but for grammar checking.
list_supported_hyphenation_languages
Same as list_supported_spelling_languages() but for hyphenation.
list_supported_spelling_languages
Return a list of language codes representing the languages for which at least one dictionary is available for spell checking. The codes conform to those specified in BCP 47. Typically the returned codes consist of only BCP 47 language subtags. They may also include tags in format Language-Script, Language-Region, or Language-Script-Region if such variants are widely used for a particular language.
version
Returns the version number of libvoikko.

Type Aliases§

Analysis
A morphological analysis item