createSpellConfig: Create a new aspell configuration object.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/aspell.R

Description

This function creates a new apsell configuration object and allows the caller to set options within that. Options can also be set later during the life of the configuration object. The configuration object is rarely needed directly by users who want to spell words. It is useful if one wants to customize how the speller functions.

Usage

1
createSpellConfig(..., .values = NULL, class = "AspellConfig")

Arguments

...

the mechanism for specifying name-value options to se in the new configuration object. This is intended for interactive use.

.values

a named list or character vector giving option values for the new configuration object. See getSpellConfig.

class

the name of the class that will be instantiated and returned containing the reference to the C-level configuration value. This argument allows the caller to easily specify the type of object that is desired and so this function can be used for derived classes of AspellConfig-class.

Value

An object of class class.

Author(s)

Duncan Temple Lang <duncan@wald.ucdavis.edu>

References

http://aspell.sourceforge.net

See Also

getSpellInfo getSpellConfig

Examples

1
2
3
4
 conf = createSpellConfig()

 conf = createSpellConfig(lang = "en")
 conf = createSpellConfig(lang = "en", mode = "email")

omegahat/Aspell documentation built on May 24, 2019, 1:50 p.m.