Companion

Properties

Link copied to clipboard

Standard paths to search for dictionary files on Linux.

Functions

Link copied to clipboard
fun create(languageTag: String): HunspellWrapper?

Creates a HunspellWrapper for the specified language.

Link copied to clipboard

Creates a HunspellWrapper using the system's default language.

Link copied to clipboard

Finds dictionary files (.aff and .dic) for a language tag.

Link copied to clipboard

Gets a list of all available dictionary language tags.

Link copied to clipboard

Directories searched for dictionaries: the entries of the DICPATH environment variable, colon separated as the hunspell CLI reads it, ahead of DICTIONARY_PATHS. DICPATH reaches dictionaries outside the standard paths, such as inside a sandbox.

Link copied to clipboard

Checks if a language is supported (dictionary files exist).