Documentation
¶
Overview ¶
Package spell provides functions for spell check and correction
Index ¶
- Variables
- func CheckWord(w string) (suggests []string, known bool, err error)
- func Complete(s string) (result []string, err error)
- func DoIgnore(word string) bool
- func IgnoreWord(word string)
- func Initialized() bool
- func LearnWord(word string)
- func Load(path string) (err error)
- func Save(filename string) error
- func Train(file os.File, new bool) (err error)
- type EditData
- type EditFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var Ignore []string
Functions ¶
func CheckWord ¶
CheckWord checks a single word and returns suggestions if word is unknown Programs should call gi.CheckWord - all program calls should be done through that single API
func Initialized ¶
func Initialized() bool
Initialized returns true if the model has been loaded or created anew
Types ¶
type EditData ¶
type EditData struct {
NewText string `desc:"spelling correction text after special edits if needed"`
}
func CorrectText ¶
CorrectText replaces the old unknown word with the new word chosen from the list of corrections delta is the change in cursor position (cp).
Click to show internal directories.
Click to hide internal directories.