Contact usRequest a demo

Spell-checking

Unblu provides a spellchecker in the WYSIWYG message editor. The spellchecker runs in the browser using Hunspell, the same spell-checking engine used by LibreOffice, Mozilla Firefox, and Google Chrome. It highlights misspelled words as users type and offers suggestions for corrections.

Prerequisites

To use the spellchecker, you must meet the following conditions:

How spell-checking works

When spell-checking is active, misspelled words in the message input are underlined in red as the user types.

Clicking a misspelled word opens a popup with up to three suggested corrections (configurable with com.unblu.form.markdowneditor.spellcheck.spellingMaxSuggestions). Selecting a suggestion replaces the misspelled word.

Spellcheck suggestion popup
Figure 1. Spellcheck suggestion popup

For agents, the popup may also offer the option to add the word to their personal dictionary or to the account dictionary, depending on the dictionaries available to them. These options aren’t available to visitors. Adding a word to a dictionary means the spellchecker no longer flags it as misspelled.

Language selection

The message input toolbar includes a language button that lets users control spell-checking. When spell-checking is enabled, the button displays an ABC icon Spelling and grammar icon alongside the name of the currently selected language. (If spell-checking is disabled, it displays the language icon Language icon instead.) Clicking it opens a menu with a Spell check toggle and a list of all available languages, sorted alphabetically.

The language button menu
Figure 2. The language button menu, showing the spell-check toggle and language list

The Spell check toggle turns spell-checking on or off for the message input. It’s enabled by default; to change this, use com.unblu.form.markdowneditor.spellcheck.spellCheckEnabledByDefault. To remove the toggle from the menu, set com.unblu.form.markdowneditor.spellcheck.showSpellCheckMenuEntry to false.

Selecting a language from the list sets the language used for spell-checking. Within a session, each conversation remembers its selected language.

Supported languages

The language menu lists all of the languages Unblu supports. Unblu includes a spellcheck dictionary for some of these languages. For the others, you must upload a custom dictionary before you can spell-check in that language.

Code Language Bundled dictionary

ar

Arabic

Yes

ca

Catalan

No

cs

Czech

No

de

German

Yes

en

English

Yes

es

Spanish

Yes

fr

French

Yes

it

Italian

Yes

pl

Polish

Yes

pt

Portuguese

Yes

ro

Romanian

Yes

ru

Russian

Yes

sk

Slovak

Yes

sl

Slovenian

Yes

sr

Serbian

Yes

sv

Swedish

Yes

th

Thai

No

zh-Hans

Simplified Chinese

No

zh-Hant

Traditional Chinese

No

In some cases, the bundled dictionary is a specific regional variant:

  • German uses Swiss German (de_CH).

  • English uses American English (en_US).

  • Portuguese uses Brazilian Portuguese (pt_BR).

  • Serbian uses the Cyrillic script.

For a language without a bundled dictionary, you can add one by uploading a custom dictionary file. You can also replace the bundled dictionary for any language. Refer to Adding custom dictionary files below for details.

Dictionaries

Dictionaries let users and administrators add words that the spellchecker should accept. This is useful for domain-specific terminology, product names, abbreviations, and other words not found in the standard language dictionaries.

Unblu supports two types of dictionary:

  • Account dictionary: A shared dictionary managed by administrators. Words added to the account dictionary are available to all users in the account.

    To disable the account dictionary, set com.unblu.dictionary.showAccountDictionary to false.

  • Personal dictionary: A private dictionary for individual agents. Each agent can manage their own personal dictionary from the user menu.

    To disable personal dictionaries, set com.unblu.dictionary.showPersonalDictionary to false.

Managing the account dictionary

Administrators manage the account dictionary in the Aria interface, on the Account dictionary tab of the Dictionary page. For more information, refer to the Account dictionary section of the Aria interface guide.

You can also manage account dictionary entries through the DictionaryEntryService endpoints of the Unblu web API.

Managing personal dictionaries

Agents can manage their personal dictionary from the user menu. To open it, click the user menu and select Dictionary.

To hide the Dictionary menu item, set com.unblu.ui.usermenu.showManageDictionary to false.

Agents can also add words directly from the spellcheck popup that appears when they click a misspelled word.

Adding custom dictionary files

You can upload custom Hunspell dictionary files to replace a bundled dictionary, or to add a dictionary for a supported language that doesn’t ship with one. For more information, refer to the Custom dictionary files section of the Aria interface guide.

You can also manage custom dictionaries through the Dictionaries service endpoints of the Unblu web API.

Customizing the appearance

You can customize the visual appearance of spelling errors:

See also

  • For information on configuring the message editor that the spellchecker integrates with, refer to WYSIWYG editor.

  • For information on Markdown support in Unblu, refer to Markdown in Unblu.

  • For information on managing the entries in account and personal dictionaries through the Unblu web API, refer to the DictionaryEntryService section of the Unblu web API reference.

  • For information on managing custom dictionary files through the Unblu web API, refer to the Dictionaries section of the Unblu web API reference.