Skip to main content

Module personal_dictionary

Module personal_dictionary 

Source
Expand description

The person’s personal vocabulary, shared by every input surface that checks or helps with spelling: the word processor, the on-screen keyboard and dictation.

The words are a section of the person’s settings document (SECTION) beside their other settings, so they follow them to their other devices. A consumer reads through a Reader bound to one document; a reader is revoked when the session replaces that document.

Structs§

Reader
One document’s view of the person’s dictionary. Revoking it makes every clone fail, as the session does when it replaces the document a recognizer was reading.
Snapshot
SnapshotPaths
The typed paths into a Snapshot, one per field.
Word
An explicit user addition. Display spelling is retained, including casing. None means all languages; a tag such as fr restricts the hint to that language and its regional variants. Additions never mean replacement rules.
WordPaths
The typed paths into a Word, one per field.

Enums§

Edit

Constants§

SECTION
The person’s words, as a section of their settings document.

Traits§

Vocabulary

Functions§

edit_in
Apply edit to the dictionary revision was read from.
snapshot_in
The person’s dictionary as source holds it. A missing or unreadable section is empty: a settings read never fails.
snapshot_of
snapshot_in of a document already loaded.