Guide › Writing

Checking spelling as you write

Mayhap marks the words its dictionaries don't know with a row of faint dots, on the page and in Aside. The dictionaries are your system's own, and each word is checked in the language of its script, so a page may mix two languages.

Marked words

By default, Mayhap checks your spelling as you write. A word none of its dictionaries know gets a row of faint dots under it. The word you're typing is left alone until the caret leaves it, or until you pause for a moment.

To fix a marked word, right-click it. The menu starts with up to four suggestions, the likeliest in bold. Choose one, and it takes the word's place as one undo step, keeping the word's look and its capital letter. For example, a bold Harbuor becomes Harbour, still bold and still capitalised.

The menu on the misspelt word desicion: decision, decisions and derision first, then Add to dictionary and Ignore

Add to dictionary and Ignore

Sometimes a word is right and the dictionary simply doesn't know it, such as a character's name. Under the suggestions, the same menu offers two ways to let it through:

Add to dictionary
Mayhap remembers the word for good, in every window. It keeps such words in dictionary.txt, beside settings.json, one word a line.
Ignore
Lets the word through in this window until you close it.

You may also edit dictionary.txt yourself in any app. Once you save it, every window picks up the change a moment later.

What isn't checked

Mayhap checks your text as it reads: bold or italic marks never split a word, and a link is checked by its text alone. In addition, a few things are never marked:

  • inline code and a link's address
  • web addresses and mail addresses
  • numbers, and words with a digit in them
  • abbreviations of two to five capital letters, such as NATO

Languages written without spaces between the words, such as Chinese, Japanese and Thai, aren't checked.

Languages

Mayhap uses the dictionaries your system already has; none come with it. On macOS and Windows, those are the system's own spelling languages. On Linux, they're the hunspell dictionaries installed on your system.

To choose which languages are checked, open Settings › Writing. Under Check spelling, Languages has a switch for each dictionary Mayhap found. On macOS and Windows, the languages your system is set to are on at first; on Linux, all of them are.

Each word is checked in the languages of its own script. For example, with English and Bulgarian both on, harbour is checked in English and пристанище in Bulgarian, side by side on the same page. A word any of them knows counts as right. A word in a script none of your dictionaries covers is never marked.

When no dictionary is found

If Mayhap finds no dictionary at all, Languages says No spelling dictionaries found. On Linux, it also says what to install: Install hunspell dictionaries, such as hunspell-en_us or hunspell-bg. Once you've installed one with your package manager, its switch shows up under Languages.

Turning it off

If you'd rather write without the dots, turn off Check spelling in Settings › Writing, or run Check spelling from the command palette. Either way, it turns off in every window, and the same command turns it back on.

Check spelling has no key by default. If you'd like one, you may give it one in Settings › Shortcuts.

Nothing in the guide matches. Write to us